2024-04-15 20:32:22 +00:00
|
|
|
[gd_scene load_steps=3 format=3 uid="uid://dijcjahkddudv"]
|
2024-04-14 04:26:14 +00:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://behaviours/draggable.gd" id="1_hdedq"]
|
2024-04-14 05:46:06 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bvrxvrjlo5130" path="res://behaviours/move_towards_mouse.tscn" id="2_gi6xd"]
|
2024-04-14 04:26:14 +00:00
|
|
|
|
2024-04-14 05:21:24 +00:00
|
|
|
[node name="Draggable" type="Area2D"]
|
2024-04-14 18:56:18 +00:00
|
|
|
collision_layer = 0
|
|
|
|
collision_mask = 0
|
2024-04-14 04:26:14 +00:00
|
|
|
script = ExtResource("1_hdedq")
|
2024-04-14 05:21:24 +00:00
|
|
|
|
2024-04-14 05:46:06 +00:00
|
|
|
[node name="MatchMousePosition" parent="." instance=ExtResource("2_gi6xd")]
|
|
|
|
scale = Vector2(10000, 10000)
|
2024-04-14 16:10:31 +00:00
|
|
|
speed = 3600.0
|
2024-04-14 05:46:06 +00:00
|
|
|
|
|
|
|
[connection signal="move" from="MatchMousePosition" to="." method="_on_move"]
|