Star Fall

From Ukikipedia
(Redirected from Fall After Star Grab)
Jump to navigation Jump to search
Star Fall
Properties
Hex 0x00001904
Action Flags air, intangible
Action Group Cutscene
ID 0x117
Transitions
Into Star Dance Water, Star Dance No Exit, Star Dance Exit
Out of Theoretically almost any non-intangible airborne action
Other
Animation GENERAL_FALL
Related Actions
Related Star Dance Water, Star Dance No Exit, Star Dance Exit

Star Fall (called Fall After Star Grab in the code) is an action that happens when Mario collects a star (not the grand star) in the air with more than 0 slices of health. This is the only way to enter this action.

set_mario_action

When transitioning into this action:

  • forward velocity is set to 0 (slide and xz velocities zero too)

Standard cutscene action cancel

This action does not have the INVULNERABLE flag so Mario cannot cancel into Quicksand Death.

Behavior

The act_fall_after_star_grab function does the following: [1]

  • If Mario's y position is below 130 units of the water level
    • Play the SOUND_ACTION_UNKNOWN430 sound
    • Set a flag so that water splash particles form
    • Return: set action to Star Dance Water
  • If perform_air_step(m, 1) results in AIR_STEP_LANDED
  • Return false

Gravity

y-velocity decreases by 3.2 each frame, with a lower bound of -65 speed instead of -75

References