Banner
Views: 993,024,744
Time:
13 users online:  AmperSam, Koopenstein, lx5, Maniek, ocked,  PermaBan, RichardDS90, SilentSnake20, Spedinja, Stivi,  Telinc1, Valentine, xfix - Guests: 88 - Bots: 120 Users: 54,459 (2,081 active)
Latest: sanskieth
Tip: Apply the Counterbreak UberASM form to reset your powerup/Yoshi status in order to avoid bringing them over from previous levels.
Not logged in.
Lock mario in place with L or R by ageVerrly
Forum Index - Valley of Bowser - Moderation Questions - UberASM - Lock mario in place with L or R by ageVerrly
Pages: « 1 » Link
File Name: Lock mario in place with L or R
Submitted: by ageVerrly
Authors: ageVerrly
Type: Level
Includes GFX: No
Includes Hijack: No
Featured: No
Description: I was asked for this very simple level ASM multiple times so I think it is a good idea to upload it.

All this does is set mario's position next frame to his position this frame if L is pressed. That means momentum is stored and can be gained even when locked. You can gain p-speed that way and change your direction midair.

You can die if you lock mario during an autoscroll as the screen will go past him.

Works in vertical levels as well.
Screenshots:
The code almost works properly now, but there's one issue; $88 is set on contact with a pipe, not when you enter a pipe. This means that if you step on/touch a pipe, the locking mechanic gets disabled for the entire level and screen scrolling is re-enabled, even if you don't enter the pipe. I recommend using $71 (the player animation trigger) to do these checks - the RAM map lists all it's values and the corresponding states for those values.

As a side note, you don't need to CMP #$00 to check if something is 0 or not - just loading a value into the accumulator sets/clears the zero flag.

Tested with:

• Lunar Magic 3.21
• SA-1 Pack v1.32
• UberASM Tool 1.4
• Snes9x v1.60
• bsnes plus v05
Pages: « 1 » Link
Forum Index - Valley of Bowser - Moderation Questions - UberASM - Lock mario in place with L or R by ageVerrly

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2022 - SMW Central
Legal Information - Privacy Policy - Link To Us


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks