Flying: Difference between revisions

2 bytes removed ,  1 August 2023
change to bullets
(→‎Behavior: unimportant)
(change to bullets)
Line 12: Line 12:
|related=
|related=
}}
}}
Flying is an action that can occurs when Mario triple jumps or does a cannon shot while wearing the [[wing cap]].
Flying is an action that can occurs when Mario triple jumps or does a cannon shot while wearing the [[wing cap]].
== Entering flying ==
== Entering flying ==
Line 39: Line 38:
# Call '''<code>update_flying</code>'''
# Call '''<code>update_flying</code>'''
# switch [[Movement_steps#Perform_Air_Step]]:
# switch [[Movement_steps#Perform_Air_Step]]:
## air step none:
#* air step none:
### Update graphics (camera) angle to be behind Mario
#*# Update graphics (camera) angle to be behind Mario
### Set action timer to 0
#*# Set action timer to 0
## air step land:
#* air step land:
### Set action to [[Dive Slide]]
#*# Set action to [[Dive Slide]]
### Set animation to MARIO_ANIM_DIVE
#*# Set animation to MARIO_ANIM_DIVE
### Set animation frame to 7
#*# Set animation frame to 7
### Set facing angle (x) to 0
#*# Set facing angle (x) to 0
### Set camera mode to m->area->camera->defMode
#*# Set camera mode to m->area->camera->defMode
## air step hit wall:
#* air step hit wall:
### '''todo'''
#*#'''todo'''
### if wall is not null, stuff, [[Backwards Air Kb]]
#*# if wall is not null, stuff, [[Backwards Air Kb]]
### else, stuff (but no knockback, this is probably out of bounds)
#*# else, stuff (but no knockback, this is probably out of bounds)
## air step hit lava wall:
#* air step hit lava wall:
### stop holding, stop riding, [[Lava Boost]]
#*# stop holding, stop riding, [[Lava Boost]]
# finally, play the flying sound (adjust sound for speed)
# finally, play the flying sound (adjust sound for speed)
I am too lazy to describe the exact details of <code>update_flying</code>, so here is the code
I am too lazy to describe the exact details of <code>update_flying</code>, so here is the code
246

edits