Language…
10 users online:  Burning Loaf, capy56788, Daizo Dee Von, derv82, Fercho91, Hwailaluta, LadiesMan217, LiamBLOL,  Major Flare, Solivan1889 - Guests: 110 - Bots: 367
Users: 55,697 (2,348 active)
Latest user: tkHilker

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: 21 (jump to comments)
Rating:
5.0 (1 rating)
No rating
Download 710 bytes | 611 downloads

Screenshots

View all

Comments (21)

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