mirror of
https://github.com/creyD/ludum_dare_46.git
synced 2026-06-13 22:12:23 +02:00
Added basic title screen functionality
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
extends AnimatedSprite
|
||||
|
||||
signal startup_finished
|
||||
var finished_once := false
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
@@ -14,3 +16,10 @@ func _ready():
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
||||
|
||||
|
||||
func _on_Startup_animation_finished():
|
||||
if not finished_once:
|
||||
emit_signal("startup_finished")
|
||||
finished_once = true
|
||||
frame = 80
|
||||
|
||||
@@ -134,3 +134,4 @@ animations = [ {
|
||||
frames = SubResource( 1 )
|
||||
centered = false
|
||||
script = ExtResource( 121 )
|
||||
[connection signal="animation_finished" from="." to="." method="_on_Startup_animation_finished"]
|
||||
|
||||
Reference in New Issue
Block a user