1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-22 15:44:21 +00:00
swear-jar/convertors/copper_to_silver.gd

17 lines
301 B
GDScript3
Raw Normal View History

2023-10-01 19:58:40 +00:00
extends StaticBody2D
@export var scene: PackedScene
2023-10-01 21:27:05 +00:00
@onready var _animated_sprite = $AnimatedSprite2D
2023-10-01 19:58:40 +00:00
func _on_collector_collected(body):
body.queue_free()
func _on_collector_goal():
2023-10-01 21:27:05 +00:00
$AnimatedSprite2D.play()
$Timer.start()
func _on_timer_timeout():
$AnimatedSprite2D.stop()
2023-10-01 20:36:26 +00:00
$Spawner.spawn()