Interaction type: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 125: Line 125:
This interaction is used for the cage Mario jumps into to enter Big Boo’s Haunt. When the interaction occurs, first the game checks to see if Mario is already in the act of entering BBH. If he is not, Mario stops riding or holding any objects, the object is updated to reflect that it has been interacted with, and Mario’s interacted object and used object attributes are set to the object. The game then sets Mario’s action depending on whether or not he is in the air. If Mario is in the air, Mario’s action is set so that he will spin into the BBH cage. If Mario is not in the air, his action is set so that he will jump into the BBH cage.
This interaction is used for the cage Mario jumps into to enter Big Boo’s Haunt. When the interaction occurs, first the game checks to see if Mario is already in the act of entering BBH. If he is not, Mario stops riding or holding any objects, the object is updated to reflect that it has been interacted with, and Mario’s interacted object and used object attributes are set to the object. The game then sets Mario’s action depending on whether or not he is in the air. If Mario is in the air, Mario’s action is set so that he will spin into the BBH cage. If Mario is not in the air, his action is set so that he will jump into the BBH cage.
===Snufit Bullet===
===Snufit Bullet===
Used for the [[Snufit]] bullet. When the interaction occurs, the game checks that Mario is not invulnerable or wearing a vanish cap. If he is not but he is wearing a metal cap, Mario takes no damage and the sound of the bullets bouncing off him plays. Otherwise, Mario takes damage without knockback, a sound plays, and his action is set based on what knockback the game determines Mario should take from the damage.
===Shocks===
===Shocks===
Used for electrical interactions. When the interaction occurs, the game checks that Mario is not invulnerable or wearing a vanish cap. If he is not, Mario takes damage without knockback and a sound plays. Then, the game checks if Mario is swimming or walking underwater. If he is, Mario is set to his underwater shock action. Otherwise, he does his regular shock action. If the object can freeze the invincibility countdown timer, it does so.
===Igloo Barrier===
===Igloo Barrier===
This interaction is used for the Igloo Barrier object in Snowman’s Land. When the interaction occurs, the game runs a function that pushes Mario away from the object. Unusually, this interaction sets Mario’s used object attribute without updating his action, unlike every other interaction in the game. This has the potential to cause several glitches, but these cannot be performed in regular circumstances since the Igloo Barrier is the only object to use this interaction.
This interaction is used for the Igloo Barrier object in Snowman’s Land. When the interaction occurs, the game runs a function that pushes Mario away from the object. Unusually, this interaction sets Mario’s used object attribute without updating his action, unlike every other interaction in the game. This has the potential to cause several glitches, but these cannot be performed in regular circumstances since the Igloo Barrier is the only object to use this interaction.