Merge pull request #395 from KirbyKid256/pulls/pose-at-door

All-Stars Pose at Level End
This commit is contained in:
Joe H
2025-09-26 12:48:31 +01:00
committed by GitHub
3 changed files with 17 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)