All-Stars Pose at Level End

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.
This commit is contained in:
KirbyKidJ
2025-09-25 17:47:11 -07:00
parent 40c2c04fcd
commit 2d4b6105b6
5 changed files with 24 additions and 0 deletions

View File

@@ -74,6 +74,7 @@ var pipe_move_direction := 1
var stomp_combo := 0
var is_invincible := false
var is_posing := false
const COMBO_VALS := [100, 200, 400, 500, 800, 1000, 2000, 4000, 5000, 8000, null]
@@ -82,6 +83,8 @@ const COMBO_VALS := [100, 200, 400, 500, 800, 1000, 2000, 4000, 5000, 8000, null
@onready var normal_state: Node = $States/Normal
@export var auto_death_pit := true
var can_pose := true
var can_hurt := true
var in_water := false

View File

@@ -7,6 +7,7 @@ func enter(_msg := {}) -> void:
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)