diff --git a/behaviours/draggable.gd b/behaviours/draggable.gd index 26bfc6c..ef45a4f 100644 --- a/behaviours/draggable.gd +++ b/behaviours/draggable.gd @@ -1,4 +1,4 @@ -extends Node +extends Area2D class_name Draggable diff --git a/behaviours/draggable.tscn b/behaviours/draggable.tscn index 81be1f5..fb6cad2 100644 --- a/behaviours/draggable.tscn +++ b/behaviours/draggable.tscn @@ -1,6 +1,13 @@ -[gd_scene load_steps=2 format=3 uid="uid://dijcjahkddudv"] +[gd_scene load_steps=3 format=3 uid="uid://dijcjahkddudv"] [ext_resource type="Script" path="res://behaviours/draggable.gd" id="1_hdedq"] -[node name="Draggable" type="Node"] +[sub_resource type="CircleShape2D" id="CircleShape2D_vkph8"] +radius = 8.0 + +[node name="Draggable" type="Area2D"] script = ExtResource("1_hdedq") + +[node name="Shape" type="CollisionShape2D" parent="."] +shape = SubResource("CircleShape2D_vkph8") +debug_color = Color(1, 1, 1, 0)