Slide Kick
Jump to navigation
Jump to search
Slide Kick | |
Properties | |
Hex | 0x018008AA |
Action Flags | Air, Attacking, Allow Vertical Wind Action |
Action Group | Airborne |
ID | 0x0AA |
Transitions | |
Into | airborne cancels: Water Plunge, Squished, Vertical Wind, main: Freefall, Slide Kick Slide, Backward Air Kb, Lava Boost |
Other | |
Animation | 0x8C |
Behavior
As with all Airborne actions there are Airborne cancels, see Single Jump#Airborne cancels
When a slide kick is happening:[1]
- If actionState and actionTimer are 0
- play the terrain's jump sound and Mario's "hoohoo" sound
- change to the slide kick animation
- If actionTimer > 30 or yPos - floorHeight > 500; Freefall(actionArg 2)
- update_air_without_turn
- if perform_air_step()
- is AIR_STEP_NONE
- if actionState == 0, change graphics angle
- is AIR_STEP_LANDED
- if actionState != 0 or vel[1] >= 0; Slide Kick Slide
- else y-velocity is negative (Mario is falling down); set vel[1] to -vel[1]/2 (this is the slide kick bounce), actionState to 1, actionTimer to 0, and play_mario_landing_sound
- is AIR_STEP_HIT_WALL, cap speed to 0, set star particles to display, and Backward Air Knockback
- is AIR_STEP_HIT_LAVA_WALL, Lava Boost on Wall
- is AIR_STEP_NONE
(perform_air_step returns NONE if all quartersteps were cancelled)