Selling mechanism

This commit is contained in:
2025-04-29 14:29:25 +02:00
parent fc4285e99d
commit 0cc20ef435
10 changed files with 131 additions and 17 deletions

View File

@ -122,12 +122,9 @@ func enemy_hurt(amount) -> void:
adjust_health_bar()
func AnimatedSprite2D_animation_finished() -> void:
print("Switching to walk animation. Current Speed Scale:",
get_node("CharacterBody2D/AnimatedSprite2D").speed_scale)
get_node("CharacterBody2D/AnimatedSprite2D").play("walk")
func Collision_Handler(body: Node2D):
if body.get_parent().name.contains("StickTrap"):
if not body.get_parent().get_if_moving_state():