SpaceFight/scenes/Splash.tscn
2021-03-06 19:45:24 -05:00

31 lines
709 B
Text

[gd_scene load_steps=4 format=2]
[ext_resource path="res://splash.png" type="Texture" id=1]
[ext_resource path="res://TestScene.tscn" type="PackedScene" id=2]
[sub_resource type="GDScript" id=1]
script/source = "extends TextureRect
export var start_scene: PackedScene
func _on_timeout():
get_tree().change_scene_to(start_scene)
"
[node name="Splash" type="TextureRect"]
anchor_right = 1.0
anchor_bottom = 1.0
texture = ExtResource( 1 )
script = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
start_scene = ExtResource( 2 )
[node name="Timer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
autostart = true
[connection signal="timeout" from="Timer" to="." method="_on_timeout"]