Single Jump: Difference between revisions

Jump to navigation Jump to search
(missed a few common air step actions)
(→‎Transition In: order more logically, actually give some info)
Line 15: Line 15:
* By pressing the A button while in a variety of actions.
* By pressing the A button while in a variety of actions.
* While in [[quicksand]], if Mario attempts to enter the [[Double Jump|double jump]] or [[twirling]] actions he will single jump instead. Doing this with twirling is very complicated and requires the use of the [[Air Throw Landing|air throw landing]] action<ref>https://www.youtube.com/watch?v=wzUEzHk-ioQ</ref>.
* While in [[quicksand]], if Mario attempts to enter the [[Double Jump|double jump]] or [[twirling]] actions he will single jump instead. Doing this with twirling is very complicated and requires the use of the [[Air Throw Landing|air throw landing]] action<ref>https://www.youtube.com/watch?v=wzUEzHk-ioQ</ref>.
== Airborne cancels ==
A variety of "cancels" are checked prior to actually performing any airborne action. These are as follows:<ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_airborne.c#L2066</ref>
# If Mario's height is lower than 100 units below the water height: [[Water Plunge]] (see [[Idle#Stationary cancels]])
# If Mario is supposed to be squished, mario_stop_riding_and_holding, [[Squished]]
# If Mario is above vertical wind (and the action allows vertical wind), then [[Vertical Wind]]
# Set quicksand depth to 0
# If (Mario's action is not (flag)invulnerable, twirling, or flying, (and the flag MARIO_UNKNOWN_18 is not there)) ''and'' Mario has fallen more than 1150 units from his peak, play SOUND_MARIO_WAAAOOOW and add the MARIO_UNKNOWN_18 flag


== Transition In ==
== Transition In ==
''Note: All airborne actions refer to (reference'' <ref>https://github.com/n64decomp/sm64/blob/9921382a68bb0c865e5e45eb594d9c64db59b1af/src/game/mario.c#L776</ref>'') for the "Transition In".''
''Note: All airborne actions refer to (reference'' <ref>https://github.com/n64decomp/sm64/blob/9921382a68bb0c865e5e45eb594d9c64db59b1af/src/game/mario.c#L776</ref>'') for the "Transition In". As with all actions, Transition In happens before common cancels and behavior.''


Generally, when transitioning into the jump action a few things happen to begin the action. This is shared with the [[Hold Jump|hold jump]] action.
Generally, when transitioning into the jump action... (This is shared with the [[Hold Jump|hold jump]] action)
# Mario's current animation is stopped.
# Mario's current animation is stopped.
# Mario's vertical speed is set to 42 + a quarter of the current forward speed.
# Mario's vertical speed is set to 42 + a quarter of the current forward speed.
# If Mario is squished and/or has a quicksand depth more than 1, the vertical speed is halved.
# If Mario is squished and/or has a quicksand depth more than 1, the vertical speed is halved.
# Mario's forward speed is multiplied by "0.8".
# Mario's forward speed is multiplied by 0.8.
Then, some more general things occur. These happen to all airborne actions.
Then, some more general things occur. These happen to all airborne actions.
# Mario's peak height is updated.
# Mario's peak height is updated.
Line 42: Line 33:
# The action state is set to 0.{{Citation needed}}
# The action state is set to 0.{{Citation needed}}
# The action timer is set to 0.{{Citation needed}}
# The action timer is set to 0.{{Citation needed}}
== Airborne cancels ==
A variety of "cancels" are checked prior to actually performing any airborne action. These are as follows:<ref>https://github.com/n64decomp/sm64/blob/66018e9f3caaa67399218971d61366cb3f7ba7d7/src/game/mario_actions_airborne.c#L2066</ref>
# If Mario's height is lower than 100 units below the water height: [[Water Plunge]] (see [[Idle#Stationary cancels]])
# If Mario is supposed to be squished, mario_stop_riding_and_holding, [[Squished]]
# If Mario is above vertical wind (and the action allows vertical wind), then [[Vertical Wind]]
# Set quicksand depth to 0
# If (Mario's action is not (flag)invulnerable, twirling, or flying, (and the flag MARIO_UNKNOWN_18 is not there)) ''and'' Mario has fallen more than 1150 units from his peak, play SOUND_MARIO_WAAAOOOW and add the MARIO_UNKNOWN_18 flag
== Behavior ==
== Behavior ==
''Certain things here are more explained on their individual pages. If something lacks detail, check the link for more information.''
''Certain things here are more explained on their individual pages. If something lacks detail, check the link for more information.''