summaryrefslogtreecommitdiff
path: root/Enemies/Enemy.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'Enemies/Enemy.tscn')
-rw-r--r--Enemies/Enemy.tscn8
1 files changed, 8 insertions, 0 deletions
diff --git a/Enemies/Enemy.tscn b/Enemies/Enemy.tscn
index 678b33a..2791e05 100644
--- a/Enemies/Enemy.tscn
+++ b/Enemies/Enemy.tscn
@@ -36,5 +36,13 @@ sprite_frames = SubResource("SpriteFrames_n2gm8")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
process_mode = 3
+[node name="RayLeft" type="RayCast2D" parent="."]
+target_position = Vector2(-9, 0)
+collision_mask = 16
+
+[node name="RayRight" type="RayCast2D" parent="."]
+target_position = Vector2(9, 0)
+collision_mask = 16
+
[connection signal="screen_entered" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_entered"]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]