ft: prey player detection
This commit is contained in:
@@ -81,5 +81,12 @@ metadata/_custom_type_script = "uid://co2xp7gauamql"
|
||||
[node name="Timer" type="Timer" parent="StateMachine/Idle" index="0"]
|
||||
one_shot = true
|
||||
|
||||
[node name="Sight" type="Area2D" parent="." index="3"]
|
||||
|
||||
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Sight" index="0"]
|
||||
polygon = PackedVector2Array(3.8686981, -6.2705374, 7.0000973, -0.08602524, 3.5555592, 5.6287766, -3.0986624, 5.589636, -6.1517763, 0.031402588, -2.942093, -6.0748243, -29.993027, -74.37026, -11.10141, -83.6233, 9.332382, -84.00884, 35.163773, -77.06906)
|
||||
|
||||
[connection signal="timeout" from="StateMachine/RandomMovement/Timer" to="StateMachine/RandomMovement" method="_on_timer_timeout"]
|
||||
[connection signal="timeout" from="StateMachine/Idle/Timer" to="StateMachine/Idle" method="_on_timer_timeout"]
|
||||
[connection signal="body_entered" from="Sight" to="." method="_on_sight_body_entered"]
|
||||
[connection signal="body_exited" from="Sight" to="." method="_on_sight_body_exited"]
|
||||
|
||||
Reference in New Issue
Block a user