mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-18 08:00:19 +02:00
Added cards for objects + MISC
- Added flame animation - Added cards for objects - Added new background animation - Added placeable walls Co-Authored-By: deranonymos <deranonymos@users.noreply.github.com>
This commit is contained in:
15
src/Objects/Traps/Bear/Bear.gd
Normal file
15
src/Objects/Traps/Bear/Bear.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
extends Node2D
|
||||
|
||||
func _on_Hurtbox_area_entered(area):
|
||||
$AnimatedSprite.play("clap")
|
||||
|
||||
|
||||
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()
|
||||
Reference in New Issue
Block a user