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.
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).