Files
ludum_dare_46/src/Objects/Traps/Bear/Bear.gd
Conrad d12d69f083 Minor Cleanup
- Renamed SoundController
- Cleaned up spacings
- File endings
2020-04-21 03:14:00 +02:00

18 lines
401 B
GDScript

extends Node2D
func _on_Hurtbox_area_entered(area):
$AnimatedSprite.play("clap")
SoundControler.pub_play_effect("res://Objects/Traps/Bear/Barenfalle.wav",3)
func _ready():
$AnimatedSprite.play("place")
func _on_AnimatedSprite_animation_finished():
if $AnimatedSprite.get_animation() == "place":
$AnimatedSprite.play("still")
elif $AnimatedSprite.get_animation() == "clap":
queue_free()