Idle: Difference between revisions

From Ukikipedia
Jump to navigation Jump to search
mNo edit summary
(→‎Behavior: link to begin sliding)
Line 13: Line 13:
}}
}}
'''Idle''' is the action where Mario stands still, turning his head back and forth while not moving.
'''Idle''' is the action where Mario stands still, turning his head back and forth while not moving.
== 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.''


As with all stationary actions, a variety of "cancels" are checked prior to actually performing the idle action. These checks are as follows:
As with all stationary actions, a variety of "cancels" are checked prior to actually performing the idle action. These checks are as follows:
# If Mario is on a steep cliff, he is pushed off.
# If Mario is on a steep cliff, he is pushed off.
# If Mario is hit by a shockwave, his action is set to the [[shockwave bounce]] action.
# If Mario is hit by a shockwave, his action is set to the [[shockwave bounce]] action.
# If A is pressed, Mario's action is set to [[jump]].
# If A is pressed, Mario's action is set to [[jump]].
# If Mario is off the floor, Mario's action is set to [[freefall]].
# If Mario is off the floor, Mario's action is set to [[freefall]].
# If Mario is above a slide, he begins sliding.
# If Mario is above a slide, he [[Begin Sliding|begins sliding]].
# If Mario goes into first-person mode, his action is set to [[first person]].
# If Mario goes into first-person mode, his action is set to [[first person]].
# If the joystick is held in a direction, Mario's action is set to [[walking]].
# If the joystick is held in a direction, Mario's action is set to [[walking]].
# If B is pressed, Mario's action is set to [[punching]].
# If B is pressed, Mario's action is set to [[punching]].
# If Z is pressed, Mario's action is set to [[crouching]].
# If Z is pressed, Mario's action is set to [[crouching]].
# Water - If Mario's height is lower than 100 units below the water height:  
# Water - If Mario's height is lower than 100 units below the water height:
#* The camera preset is updated.
#* The camera preset is updated.
#* The action is transitioned into the [[Water Plunge|water plunge]] action.
#* The action is transitioned into the [[Water Plunge|water plunge]] action.
Line 41: Line 39:
#* This stops the crouching action.
#* This stops the crouching action.
# Lastly, Mario interacts with [[quicksand]] if his floor is a quicksand floor.
# Lastly, Mario interacts with [[quicksand]] if his floor is a quicksand floor.
With the Idle action occurring, the following happens:
With the Idle action occurring, the following happens:
# If Mario has sunk more than 30 units into quicksand, his action is set to the [[quicksand action]].
# If Mario has sunk more than 30 units into quicksand, his action is set to the [[quicksand action]].

Revision as of 19:14, 22 July 2022

Idle
Properties
Hex 0x0C400201
Action Flags Stationary, Idle, Allow First Person, Pause Exit
Action Group Stationary
ID 0x001

Idle is the action where Mario stands still, turning his head back and forth while not moving.

Behavior

Certain things here are more explained on their individual pages. If something lacks detail, check the link for more information.

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

  1. If Mario is on a steep cliff, he is pushed off.
  2. If Mario is hit by a shockwave, his action is set to the shockwave bounce action.
  3. If A is pressed, Mario's action is set to jump.
  4. If Mario is off the floor, Mario's action is set to freefall.
  5. If Mario is above a slide, he begins sliding.
  6. If Mario goes into first-person mode, his action is set to first person.
  7. If the joystick is held in a direction, Mario's action is set to walking.
  8. If B is pressed, Mario's action is set to punching.
  9. If Z is pressed, Mario's action is set to crouching.
  10. Water - If Mario's height is lower than 100 units below the water height:
    • The camera preset is updated.
    • The action is transitioned into the water plunge action.
    • This stops the crouching action.
  11. Squish - If Mario is supposed to be squished:
    • The camera preset is updated.
    • Mario's action is changed to the squished action.
    • This stops the crouching action.
  12. If the action is not the unused 0x0E action (always true) and Mario has less than 0x100 health:
    • The camera preset is updated.
    • Mario's action is changed to the standing death action.
    • This stops the crouching action.
  13. Lastly, Mario interacts with quicksand if his floor is a quicksand floor.

With the Idle action occurring, the following happens:

  1. If Mario has sunk more than 30 units into quicksand, his action is set to the quicksand action.
  2. If Mario is in poison gas, his action is set to coughing.
  3. If Mario is not against a wall and has low health, his action is set to the panting action.
  4. Common stationary cancels are checked.
  5. If Mario is about to start sleeping, if he is in a cold environment he stars to shiver. Otherwise, he begins the sleeping action.
  6. If Mario is against a wall, Mario has his animation changed to be standing against the wall. Otherwise, Mario's animation is set depending on which way he is turning his head.
  7. If Mario's animation has just ended, his head has turned 10 times, and there is ground behind him, he goes into the sleeping action.