Language…
14 users online:  Ahrion, anonimzwx, Batata Douce,  BeeKaay, crocodileman94, DasFueller, Foxy_9000_, Fozymandias, Hammerer, Maw, monkey03297, playagmes169, schema_tuna, sinseiga - Guests: 258 - Bots: 325
Users: 64,795 (2,376 active)
Latest user: mathew

Horizontal/Vertical Autoscroll

UberASM Repository → Horizontal/Vertical Autoscroll

Submission Details

Name: Horizontal/Vertical Autoscroll
Author: Kevin
Added:
Version History: View
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: This code will enable horizontal or vertical autoscrolling in the level it's inserted in. Check out the asm file for customization options, such as scroll direction, speed/fractional speed and when to start and stop the autoscroll.

Note: when using horizontal autoscrolling with a high speed, Mario will die instead of being pushed by the border of the screen.

Note 2: usage of this patch is recommended to solve spawning issues when using this.

Update:
- Added horizontal autoscroll option.
- Added option to teleport when the autoscroll stops (suggested by TheMorganah).
Tags: autoscroll lorom sa-1
Comments: 14 (jump to comments)
Rating:
0.0 (0 ratings)
No rating
Download 1.81 KiB | 1,085 downloads

Screenshots

View all

Comments (14)

Gulaschko Link
does this scroll layer 1 as well as layer 2?
oderjunks Link
i need to examine this code to make a thing
JamesD28 Link
Tested with:

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

Works as intended, so, accepted. Has some nice customization options, the vertical autoscroll has some creative potential uses in vertical levels, and the horizontal setting serves as a good alternative to the somewhat limited autoscroll sprites.

A few things which should be kept in mind:

- If you use the horizontal autoscroll, and use one of the horizontal level modes which stacks screens vertically in any way, you shouldn't set the !StopScreen number higher than that of the upper-right-most screen in the level.

- Once you reach the !StopScreen number, H-scroll will be disabled for the rest of the level, even if you re-enter that level further along than where the !StopScreen is set. This also applies to the teleport feature - re-entering the level past the !StopScreen number will instantly teleport you via the screen exit again.

- Don't use horizontal autoscrolling in a vertical level layout. You shouldn't have any reason for this in the first place, but just don't.
 Kevin Author From older version: Vertical Autoscroll Link
Originally posted by aarkond

Does this work with PIXI, or with another program?
Is it placed just like a sprite?

It's in the UberASM section therefore you insert it with UberASM Tool.
aarkond From older version: Vertical Autoscroll Link

Does this work with PIXI, or with another program?
Is it placed just like a sprite?
El Cuh Fermin Link
It is incompatible with smb1 multi path right/wrong paths. But it still working for not to worry about the sprite version
 Kevin Author Link
Originally posted by RussianMan
why no screenshot for "added horizontal autoscroll option"?

Lazyness Added.
 RussianMan Link
why no screenshot for "added horizontal autoscroll option"?
El Cuh Fermin From older version: Vertical Autoscroll Link
It would be nice for horizontal scroll for any level and include smb1 paths right/wrong compatibility.
 Major Flare From older version: Vertical Autoscroll Link
Tested with: LM 3.11, UberASMTool 1.4, SA-1 1.32 and ZMZ 1.08.

Accepted; however, please note that, to effectively disable horizontal scroll, you must set, along the flag within the code, the option "Disable Vertical and Horizontal Scroll" in the Level Header (button #lm{MARIO69}).
Anas From older version: Vertical Autoscroll Link
Oh, okay.
 Kevin Author From older version: Vertical Autoscroll Link
Originally posted by AnasMario130
Cool code. However, if one wanted their vertical levels to scroll at a super specific place and not at the beginning, wouldn't you need to place it as a sprite or generator?

I added an option to set the screen number where to start autoscrolling.
Anas From older version: Vertical Autoscroll Link
Cool code. However, if one wanted their vertical levels to scroll at a super specific place and not at the beginning, wouldn't you need to place it as a sprite or generator?
El Cuh Fermin From older version: Vertical Autoscroll Link
This is pretty cool KevinM, nice code for vertical levels autoscroll since the old one was glitchy