Banner
Views: 829,282,518
Time:
27 users online:  Aja, alexwong, Batata Douce, Blue Axl, BrownBuddy, chickaDEE Magazine, Daizo Dee Von, Dekudo, FailSandwich, HammerBrother,  KevinM, kiki79250, Knight of Time, KokyuDosa, MarioFan1985, MarioriaM, Miku, Mr. MS, Pancake001, placeholdertest, Powblock532, Ralshi02, riverson, SammmUuU, SquidMan_Raps, StackDino, XGAMER 2009 - Guests: 87 - Bots: 86 Users: 44,455 (2,523 active)
Latest: GabrielUltra
Tip: Check for glitched graphics in all frames of an object or sprite (i.e., the ON/OFF block changing, etc...).Not logged in.
Details for Layer 2 Background Auto-Scroll
UberASM Repository - Layer 2 Background Auto-Scroll Show random
File Name: Layer 2 Background Auto-Scroll
Added:
Authors: Ayami
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: A simple code to make your backgrounds use auto-scroll. Includes options to customize the direction, speed and an option to disable the scroll when the player dies. Note that for this to work properly you need to set H-Scroll and V-Scroll to None in the level via Lunar Magic.
Tags: autoscroll, layer 2, lorom, sa-1, tilemap
Rating: 5.0 (Votes: 2)
Download: Download - 662 bytes
219 downloads
Screenshots
Previous 
 Next
Ayami
Oh yes, I noticed this bug while testing $9D too LOL
Thanks anyway for the heads up, will update it soon
Posted by:  Ayami - | Link
Koopster
That's in fact it. It's also a good call to include an ORA $13D4 before the branch to also check for the game being paused, or else the position will keep increasing and be offset when unpausing. I did those changes here and it works perfectly.
Posted by:  Koopster - | Link
Ayami
Thanks for the feedback Koopster. That's indeed a good idea, I wasn't aware that such a RAM existed (I'm still newbie about asm stuff) but I'm going to test it a bit to see how it works. I'm assuming it's just changing the check from $71 to $9D (but instead checking when it's #$01 it's non-zero).
Posted by:  Ayami - | Link
Koopster
Works nicely, but I think it is weird the scrolling still rolls during freeze times (i.e. get powerup, yoshi hatch, etc). Rather than a death check, checking if $9D is set might be better!
Posted by:  Koopster - | Link
ZelRaat
Works perfectly.
Posted by: ZelRaat - | Link
Ayami
Originally posted by supershadow64ds
I'm trying to add this with UberASM/Asar but I just keep getting an error that "define "addr" wasn't found". What am I doing wrong?

First of all, don't insert this with Asar, it's not the case for (just for your information, UberASM Tool and Asar are different things). Use only UberASM Tool to insert this, it should work fine. If still not, make a post in a help forum giving more details about your issue.
Posted by:  Ayami - | Link
supershadow64ds
I'm trying to add this with UberASM/Asar but I just keep getting an error that "define "addr" wasn't found". What am I doing wrong?
Posted by: supershadow64ds - | Link
zacmario
Ok thanks shiny
Posted by: zacmario - | Link
Ayami
Originally posted by Hooded Edge
Will this work with levels that have the layer 2 interaction enabled?

No, this is just for backgrounds. Using it in levels with Layer 2 FG will result in garbage looping infinitely.

Originally posted by zacmario
Shiny do you think you could do this with layer 3?

Well, you kinda doesn't need that since Lunar Magic already give you options to autoscroll the Layer 3, unless you want the diagonal ones, of course. Haven't tested it carefully, but changing '$1466|!addr' and '$1468|!addr' to '$0022|!dp' and '$0024|!dp' will do the trick. The problem, either way, is dealing with the status bar, which is the reason why I didn't add this as a customizable option to begin with (unless you use a patch like Nuke Status Bar, which actually removes the status bar from the Layer 3).
Posted by:  Ayami - | Link
zacmario
Shiny do you think you could do this with layer 3?
Posted by: zacmario - | Link
Hooded Edge
Will this work with levels that have the layer 2 interaction enabled?
Posted by: Hooded Edge - | Link
KevinM
Tested with: LM 3.04, UberASMTool 1.4, SA-1 1.32, Snes9x 1.60. Everything works as intended, so accepted.
Posted by:  KevinM - | Link
Mandagary
hola manu
Posted by: Mandagary - | Link
zacmario
That is awesome shiny
Posted by: zacmario - | Link
h.carrell
Posted by: h.carrell - | Link
h.carrell
nice
Posted by: h.carrell - | Link

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2020 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 19

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy