Basic Bat enemy AI
This commit is contained in:
13
ActionRPG-HeartBeast/Enemies/PlayerDetectionZone.tscn
Normal file
13
ActionRPG-HeartBeast/Enemies/PlayerDetectionZone.tscn
Normal file
@@ -0,0 +1,13 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Enemies/PlayerDetectionZone.gd" type="Script" id=1]
|
||||
|
||||
[node name="PlayerDetectionZone" type="Area2D"]
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_PlayerDetectionZone_body_entered"]
|
||||
[connection signal="body_exited" from="." to="." method="_on_PlayerDetectionZone_body_exited"]
|
||||
Reference in New Issue
Block a user