Added basic title screen functionality

This commit is contained in:
Paul Norberger
2020-04-18 14:21:22 +02:00
parent 88a8f255d3
commit 4d696c0cea
9 changed files with 104 additions and 23 deletions

View File

@@ -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

View File

@@ -134,3 +134,4 @@ animations = [ {
frames = SubResource( 1 )
centered = false
script = ExtResource( 121 )
[connection signal="animation_finished" from="." to="." method="_on_Startup_animation_finished"]