1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-22 16:14:22 +00:00
hella-farm/behaviours/move_towards_target.tscn
Lorenzo Rossi 8f46ff5022 Generalize move_towards_mouse in move_towards
Also create move_towards_target
2024-04-14 18:20:50 +02:00

12 lines
618 B
Text

[gd_scene load_steps=3 format=3 uid="uid://c7b4v6h7a3dy6"]
[ext_resource type="Script" path="res://behaviours/move_towards_target.gd" id="1_703gy"]
[ext_resource type="PackedScene" uid="uid://cbg5kgwxusvxf" path="res://behaviours/hover_detector.tscn" id="2_nq6qb"]
[node name="MoveTowardsTarget" type="Node2D"]
script = ExtResource("1_703gy")
[node name="CaptureArea" parent="." instance=ExtResource("2_nq6qb")]
[connection signal="mouse_entered" from="CaptureArea" to="." method="_on_capture_area_mouse_entered"]
[connection signal="mouse_exited" from="CaptureArea" to="." method="_on_capture_area_mouse_exited"]