Double Jump: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
(technically, twirling->jump not double jump->jump)
(Undo revision 17813 by Icecream17 (talk) Oops, actually Double Jump can also -> Jump, by the same reason as Twirling -> Jump)
Tag: Undo
Line 7: Line 7:
|group= Airborne
|group= Airborne
|id= 0x081
|id= 0x081
|into=[[Twirling]]  
|into=[[Twirling]], [[Jump]]  
|out of= [[Single Jump Land]], [[Sideflip Land]], [[Freefall Land]]
|out of= [[Single Jump Land]], [[Sideflip Land]], [[Freefall Land]]
|animation= 0x4C, 0x4D
|animation= 0x4C, 0x4D

Revision as of 02:12, 8 March 2023

Double Jump
Properties
Official Name secJump (Second Jump)
Hex 0x03000881
Action Flags Air, Allow Vertical Wind Action, Control Jump Height
Action Group Airborne
ID 0x081
Transitions
Into Twirling, Jump
Out of Single Jump Land, Sideflip Land, Freefall Land
Other
Animation 0x4C, 0x4D

A double jump is an action that typically follows an earlier jump with more height. Specifically, a double jump can be entered by pressing A while in:

Behavior

As with all airborne actions, a variety of "cancels" are checked prior to actually performing the jump action. These checks are as follows:

  1. Water - If Mario's height is lower than 100 units below the water height, the action is transitioned into the water plunge action.
  2. Squish - If Mario is supposed to be squished, his action is changed to the squished action.
  3. Vertical Wind- If Mario is above a vertical wind floor, his action is changed to the vertical wind action. (This is due to the jump action having the "Allow Vertical Wind Action" flag.)

At this point, two more things happen prior to the jump action:

  • Mario's quicksand depth is set to 0.
  • Mario plays a falling noise if he has fallen more than 1150 units from his peak.

With the jump action occurring, the following happens:

  1. Mario's vertical speed is set to .
  2. If Mario's vertical speed is not negative, his animation is set to the double jump rising animation. Otherwise, it is set to the double jump falling animation.
  3. If the B button is pressed, Mario will either enter the dive action if his speed is greater than 28 or the jump kick action otherwise. This stops the double jump action.
  4. If the Z button is pressed, Mario will enter the ground pound action. This stops the double jump action.
  5. Mario performs the other noises for the jump.
  6. Now, Mario performs the quarter-frame movement via a full common air step. The landing action is a double jump land action and the check has both the "Check Ledge Grab" and "Check Hang" flags.