godot/scripting_first_script/node_2d.tscn

20 lines
598 B
Text

[gd_scene load_steps=2 format=3 uid="uid://c8sxdckrhknyo"]
[ext_resource type="PackedScene" uid="uid://bxxuj5sw4p1oy" path="res://sprite_2d.tscn" id="1_1kdcd"]
[node name="Node2D" type="Node2D"]
[node name="Button" type="Button" parent="."]
offset_left = 53.0
offset_top = 51.0
offset_right = 172.0
offset_bottom = 95.0
text = "Toggle motion"
[node name="Sprite2D" parent="." instance=ExtResource("1_1kdcd")]
position = Vector2(289, 187)
[node name="Timer" type="Timer" parent="Sprite2D"]
autostart = true
[connection signal="pressed" from="Button" to="Sprite2D" method="_on_button_pressed"]