Wizard Tower and special effects

This commit is contained in:
2025-04-15 20:32:00 +02:00
parent c4c01800dd
commit 08479e83c1
16 changed files with 302 additions and 20 deletions

View File

@ -122,6 +122,7 @@ func AnimatedSprite2D_animation_finished() -> void:
if animated_sprite.animation == "hurt":
animated_sprite.play("walk")
func Collision_Handler(body: Node2D):
if body.get_parent().name.contains("StickTrap"):
if not body.get_parent().get_if_moving_state():
@ -140,3 +141,11 @@ func Collision_Handler(body: Node2D):
func get_progress():
return get_parent().get_progress()
func set_progress(amount) -> void:
get_parent().set_progress(amount)
func get_speed():
return speed
func set_speed(nspeed) -> void:
speed = nspeed