mirror of
https://github.com/Steffo99/hella-farm.git
synced 2024-11-22 08:04:23 +00:00
Make Sheep
Draggable
This commit is contained in:
parent
4e1ba1311f
commit
e434ae69bf
1 changed files with 4 additions and 1 deletions
|
@ -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="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://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"]
|
[sub_resource type="CircleShape2D" id="CircleShape2D_c5tcn"]
|
||||||
radius = 16.0
|
radius = 16.0
|
||||||
|
@ -23,4 +24,6 @@ scale = Vector2(30, 30)
|
||||||
speed = -20.0
|
speed = -20.0
|
||||||
can_detach = true
|
can_detach = true
|
||||||
|
|
||||||
|
[node name="Draggable" parent="." instance=ExtResource("3_8ku7r")]
|
||||||
|
|
||||||
[connection signal="move" from="MoveTowardsMouse" to="." method="_on_move"]
|
[connection signal="move" from="MoveTowardsMouse" to="." method="_on_move"]
|
||||||
|
|
Loading…
Reference in a new issue