mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00

This adds a new and optional animation for Characters called `PoseDoor`. When a character uses this animation, they stop at the entrance of the castle door to strike a pose like in All-Stars.
15 lines
425 B
GDScript
15 lines
425 B
GDScript
extends PlayerState
|
|
|
|
func enter(_msg := {}) -> void:
|
|
player.can_hurt = false
|
|
player.has_jumped = false
|
|
player.crouching = false
|
|
player.get_node("CameraCenterJoint/RightWall").set_collision_layer_value(1, false)
|
|
|
|
func physics_update(delta: float) -> void:
|
|
if player.is_posing: return
|
|
player.input_direction = 1
|
|
player.can_run = false
|
|
player.normal_state.handle_movement(delta)
|
|
player.normal_state.handle_animations()
|