1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-25 09:34:24 +00:00

Make Sheep Draggable

This commit is contained in:
Steffo 2024-04-14 07:20:53 +02:00
parent 4e1ba1311f
commit e434ae69bf
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -1,7 +1,8 @@
[gd_scene load_steps=5 format=3 uid="uid://bc2bm8lbol18w"]
[gd_scene load_steps=6 format=3 uid="uid://bc2bm8lbol18w"]
[ext_resource type="Script" path="res://entities/sheep.gd" id="1_4dmll"]
[ext_resource type="PackedScene" uid="uid://bvrxvrjlo5130" path="res://behaviours/move_towards_mouse.tscn" id="2_tfd2i"]
[ext_resource type="PackedScene" uid="uid://dijcjahkddudv" path="res://behaviours/draggable.tscn" id="3_8ku7r"]
[sub_resource type="CircleShape2D" id="CircleShape2D_c5tcn"]
radius = 16.0
@ -23,4 +24,6 @@ scale = Vector2(30, 30)
speed = -20.0
can_detach = true
[node name="Draggable" parent="." instance=ExtResource("3_8ku7r")]
[connection signal="move" from="MoveTowardsMouse" to="." method="_on_move"]