aboutsummaryrefslogtreecommitdiffstats
path: root/Nodes/drawing.tscn
diff options
context:
space:
mode:
authorLibravatar perivesta <>2023-07-07 23:26:08 +0200
committerLibravatar perivesta <>2023-07-07 23:26:08 +0200
commit2236b0c2050f98aa11c6c631ee6ddc9dd7e57df0 (patch)
tree8bbee63225e6001765540b610da19959e6b9d959 /Nodes/drawing.tscn
parented77e27ecd1101f02e3d7fb83cca5a4b62dd3dca (diff)
download2023-2236b0c2050f98aa11c6c631ee6ddc9dd7e57df0.tar.gz
2023-2236b0c2050f98aa11c6c631ee6ddc9dd7e57df0.tar.bz2
2023-2236b0c2050f98aa11c6c631ee6ddc9dd7e57df0.zip
follow the drawn path
Diffstat (limited to '')
-rw-r--r--Nodes/drawing.tscn13
1 files changed, 12 insertions, 1 deletions
diff --git a/Nodes/drawing.tscn b/Nodes/drawing.tscn
index 4c04ea7..3f65fee 100644
--- a/Nodes/drawing.tscn
+++ b/Nodes/drawing.tscn
@@ -1,8 +1,19 @@
-[gd_scene load_steps=2 format=3 uid="uid://covygojlfmx6x"]
+[gd_scene load_steps=4 format=3 uid="uid://covygojlfmx6x"]
[ext_resource type="Script" path="res://Scripts/drawing.gd" id="1_03nmp"]
+[ext_resource type="Texture2D" uid="uid://bpasf8is2xnfb" path="res://icon.svg" id="2_sgpkt"]
+
+[sub_resource type="Curve2D" id="Curve2D_dtc4h"]
[node name="Drawing" type="Node2D"]
script = ExtResource("1_03nmp")
[node name="TrackLine" type="Line2D" parent="."]
+
+[node name="TrackPath" type="Path2D" parent="."]
+curve = SubResource("Curve2D_dtc4h")
+
+[node name="TrackFollower" type="PathFollow2D" parent="TrackPath"]
+
+[node name="Sprite2D" type="Sprite2D" parent="TrackPath/TrackFollower"]
+texture = ExtResource("2_sgpkt")