crabs-game/scripts/menu/title_background.gd

14 lines
235 B
GDScript3
Raw Normal View History

2020-08-16 08:50:04 +02:00
extends AnimatedSprite
2020-08-17 11:38:42 +02:00
export var start_delay : float = 0.1
2020-08-16 08:50:04 +02:00
func _ready():
2020-08-17 11:38:42 +02:00
yield(get_tree().create_timer(start_delay), 'timeout')
2020-08-16 08:50:04 +02:00
play('start')
frame = 0
2020-08-17 11:38:42 +02:00
show()
2020-08-16 08:50:04 +02:00
func _on_background_animation_finished():
play('idle')
frame = 0