Language…
16 users online:  Ahrion, Batata Douce, drkrdnk,  Eden_, Hammerer, LadiesMan217, LuigiTron, magianegra21, masl, Maw, ppp9q,  Ringo, sinseiga, Sokobansolver, Sparx, The_Uber_Camper - Guests: 263 - Bots: 302
Users: 64,795 (2,376 active)
Latest user: mathew

Layer 2 Background Auto-Scroll

UberASM Repository → Layer 2 Background Auto-Scroll

Submission Details

Name: Layer 2 Background Auto-Scroll
Author: Ayami
Added:
Version History: View
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 in No-Yoshi intros.

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
Comments: 23 (jump to comments)
Rating:
5.0 (2 ratings)
No rating
Download 710 bytes | 923 downloads

Screenshots

View all

Comments (23)

 Ayami Author Pinned Link
With the latest release of Lunar Magic (3.40), this uberasm is obsolete now, as layer 2 scroll options now includes auto-scroll at different speeds (more options than this uberasm's code can handle, indeed, at least by its own). I suggest you to update Lunar Magic and use those instead (whether this code should be kept in the section or not, it's up to asm moderators)
ShoopDaWhoop Link
Can i make it that only one specific level scrolls?
ninj Link
Originally posted by The_Uber_Camper
Is there a way to disable the No-Yoshi Intro itself?


Go to "Change other properties dialogue" (the #lm{othprops} icon)
Check disable "No Yoshi" intro.
The_Uber_Camper Link
Is there a way to disable the No-Yoshi Intro itself?
broom Link
I was just looking for this in vanilla lunar magic today, thought I had used it before. Ayami #smrpg{<3}
 Maarfy Link
Easy to use and works just fine. Accepted.

Tested with Asar 1.71, Lunar Magic 3.11, SA-1 1.32, Snes9x 1.59.2, UberASM Tool 1.4.
 Ayami Author Link
Small Update:
-Instead of a check only when Mario dies, made it a general check for when animations are locked.
-Added a check for the Pause flag too, fixing a bug where the background position was still scrolling while being frozen in pause.
-Added an option to disable scroll in No-Yoshi intros (activated by default, replaced old optional death animation).

Thanks to Koopster for the feedback and to lx5 for some explanations.
 Ayami Author From older version: Layer 2 Background Auto-Scroll Link
Oh yes, I noticed this bug while testing $9D too LOL
Thanks anyway for the heads up, will update it soon
 Koopster From older version: Layer 2 Background Auto-Scroll Link
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.
 Ayami Author From older version: Layer 2 Background Auto-Scroll Link
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).
 Koopster From older version: Layer 2 Background Auto-Scroll Link
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!
ZelRaat From older version: Layer 2 Background Auto-Scroll Link
Works perfectly.
 Ayami Author From older version: Layer 2 Background Auto-Scroll Link
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.
supershadow64ds From older version: Layer 2 Background Auto-Scroll Link
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?
zacmario From older version: Layer 2 Background Auto-Scroll Link
Ok thanks shiny
 Ayami Author From older version: Layer 2 Background Auto-Scroll Link
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).
zacmario From older version: Layer 2 Background Auto-Scroll Link
Shiny do you think you could do this with layer 3?
 Hooded Edge From older version: Layer 2 Background Auto-Scroll Link
Will this work with levels that have the layer 2 interaction enabled?
 Kevin From older version: Layer 2 Background Auto-Scroll Link
Tested with: LM 3.04, UberASMTool 1.4, SA-1 1.32, Snes9x 1.60. Everything works as intended, so accepted.
 Aram From older version: Layer 2 Background Auto-Scroll Link
hola manu
zacmario From older version: Layer 2 Background Auto-Scroll Link
That is awesome shiny
h.carrell From older version: Layer 2 Background Auto-Scroll Link
h.carrell From older version: Layer 2 Background Auto-Scroll Link
nice