mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-29 03:24:23 +00:00
Make Draggable
an Area2D
consisting of the mouse target
This commit is contained in:
parent
e434ae69bf
commit
6df6455505
2 changed files with 10 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
extends Node
|
extends Area2D
|
||||||
class_name Draggable
|
class_name Draggable
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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"]
|
[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")
|
script = ExtResource("1_hdedq")
|
||||||
|
|
||||||
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
||||||
|
shape = SubResource("CircleShape2D_vkph8")
|
||||||
|
debug_color = Color(1, 1, 1, 0)
|
||||||
|
|
Loading…
Reference in a new issue