cleaned up some of the posing code

This commit is contained in:
JHDev2006
2025-09-26 12:58:25 +01:00
parent 9eb206d203
commit 11a4b57ac5
4 changed files with 9 additions and 5 deletions

View File

@@ -29,7 +29,8 @@ func player_touch(player: Player) -> void:
get_tree().call_group("Enemies", "flag_die")
give_points(player)
Global.can_time_tick = false
player.z_index = -2
if player.can_pose == false:
player.z_index = -2
player.global_position.x = $Flag.global_position.x + 3
$Animation.play("FlagDown")
player.state_machine.transition_to("FlagPole")