Selling mechanism
This commit is contained in:
@ -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():
|
||||
|
Reference in New Issue
Block a user