Language…
9 users online: CalHal, Heitor Porfirio, Humpersbmx1, jferrerfaj, KirbyPizzaPalace, Natsuz2,  RussianMan, TheJank, woag_gamer - Guests: 100 - Bots: 238
Users: 66,509 (2,386 active)
Latest user: carrotkurboi21

Layer 2 Scroll on Button Press

UberASM Repository → Layer 2 Scroll on Button Press

Submission Details

Name: Layer 2 Scroll on Button Press
Author: badummzi
Added:
Version History: View
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This ASM makes Layer 2 Scroll, when the player presses a certain button.

It includes the option to scroll up and down, and the option to scroll left and right.

It's highly customizable. You can change the speed, the positions, when layer 2 should stop and the buttons, that make layer 2 scroll and more!

Update to version 1.4:
- Fixed a bug, where you could scroll, even if the game was paused
- Cleaned up the code and added two new options for customization

Feel free to DM me, if you dont know how something works! ;)
Tags: layer 2 lorom sa-1 scroll
Comments: 11 (jump to comments)
Rating:
0.0 (0 ratings)
No rating
Download 1.88 KiB | 404 downloads

Screenshots

Comments (11)

JamesD28 Link
Tested with:

• Lunar Magic 3.11
• SA-1 Pack v1.32
• UberASM Tool 1.4
• Snes9x v1.60

Works as intended, so, update accepted. However, I'd recommend being very careful when using the faster speed type, as it can be very easy to make the fast scrolling cause Mario to clip into objects and die. When set too fast, there can even be issues with object/layer graphics becoming garbled. Not a cause for rejection since it's a result of how SMW uploads tiles, but just something to be aware of.
badummzi Author Link
No problem! :D
Anas Link
Ah, I understand now. Thanks for the info.
badummzi Author Link
@AnasMario130 I'm not exactly sure, what you mean... If you mean, that you can use this UberASM without setting the V-Scroll to none in the level header (Leaves in Lunar Magic): No, sadly you can't. The game updates Layer 2 according to Marios position in the other modes and because of that, the addresses can not be overwritten and would immediately change back, if you did so (That's why the ASM also doesn't work, if those modes are not set correctly). So yeah, in conclusion it is not possible, without some major modification or patching a section of the layer 2 code in the game.
Anas Link
Say, could this be made to not make the layer 2's vertical scrolling hardcoded to none, if I'm correct?
badummzi Author From older version: Layer 2 Scroll on button press Link
Ok, thanks for moderating it again @KKevinM ! :D
Thanks for fixing the bugs!
 Kevin From older version: Layer 2 Scroll on button press Link
Tested on: LM 3.03, UberASMTool 1.4, SA-1 1.31.
That was a fast update!... maybe too fast, since some stuff was missing or didn't work (the check for $FF was missing with the normal SpeedType, setting $FF to SpeedUp with SpeedType = $00 made the layer not move in both directions). I fixed it for you, and optimized the code so that the checks for speed/speedtype are made at compile time (saves space and cycles). Also made $FF the only value that makes the layer not move, since with $00 you can get a speed not obtainable with other values.
badummzi Author From older version: Layer 2 Scroll on button press Link
Thanks for moderating @KKevinM ! :D

I'll update this file today, to add in the options you suggested ;)
 Kevin From older version: Layer 2 Scroll on button press Link
Tested with: LM 3.03, UberASMTool 1.4, SA-1 1.31. It works nicely, so accepted.
There are two small things that you could add if you wanted: make so that speed 0 makes the layer 2 not scroll in the relative direction, and add an option to stop the horizontal layer 1 scroll when used in a vertical level.
badummzi Author From older version: Layer 2 Scroll on button press Link
Thanks for the nice words @Darkbloom ! :D
Im glad, that you guys appreciate my work ;)
Vivian Darkbloom From older version: Layer 2 Scroll on button press Link
I'm really glad this exists! I had an idea to do something like this but you've made a much better version, so thank you :)