2024-03-26 11:09:45 +01:00
|
|
|
[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)
|
|
|
|
|
2024-03-26 11:15:21 +01:00
|
|
|
[node name="Timer" type="Timer" parent="Sprite2D"]
|
|
|
|
autostart = true
|
|
|
|
|
2024-03-26 11:09:45 +01:00
|
|
|
[connection signal="pressed" from="Button" to="Sprite2D" method="_on_button_pressed"]
|