crabs-game/scripts/menu/title_background.gd

12 lines
182 B
GDScript3
Raw Normal View History

2020-08-16 08:50:04 +02:00
extends AnimatedSprite
func _ready():
yield(get_tree().create_timer(0.1), 'timeout')
2020-08-16 08:50:04 +02:00
play('start')
frame = 0
func _on_background_animation_finished():
play('idle')
frame = 0