[gd_scene load_steps=6 format=2] [ext_resource path="res://Sprites/RocketShip.png" type="Texture" id=1] [ext_resource path="res://World.gd" type="Script" id=2] [ext_resource path="res://Sprites/LaunchButton.png" type="Texture" id=3] [sub_resource type="GDScript" id=1] script/source = "extends Sprite func _ready(): print(\"Hello world\") " [sub_resource type="Animation" id=2] resource_name = "Launch" tracks/0/type = "value" tracks/0/path = NodePath("RocketShip:position") tracks/0/interp = 2 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 1 ), "transitions": PoolRealArray( 1, 1 ), "update": 0, "values": [ Vector2( 640, 620 ), Vector2( 640, -130 ) ] } [node name="World" type="Node"] script = ExtResource( 2 ) [node name="ColorRect" type="ColorRect" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 color = Color( 0, 0, 0, 1 ) __meta__ = { "_edit_use_anchors_": false } [node name="RocketShip" type="Sprite" parent="."] position = Vector2( 640, 620 ) scale = Vector2( 2, 2 ) texture = ExtResource( 1 ) script = SubResource( 1 ) [node name="AnimationPlayer" type="AnimationPlayer" parent="."] anims/Launch = SubResource( 2 ) [node name="LaunchButton" type="TextureButton" parent="."] margin_left = 1168.0 margin_top = 672.0 margin_right = 1216.0 margin_bottom = 688.0 rect_scale = Vector2( 2, 2 ) texture_normal = ExtResource( 3 ) __meta__ = { "_edit_use_anchors_": false } [connection signal="pressed" from="LaunchButton" to="." method="_on_LaunchButton_pressed"]