Wizard Tower and special effects
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user