From 57d1e6317a6bb04d371b7bfab3c96a0349cf9f85 Mon Sep 17 00:00:00 2001 From: pennyrigate Date: Sat, 25 Mar 2023 00:46:34 -0400 Subject: [PATCH] laser wall collision layers changed so the pigs would not stop lasers --- maps/station.tscn | 4 ++-- objects/enemy/laser_wall.tscn | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/maps/station.tscn b/maps/station.tscn index 8fdce77..813baee 100644 --- a/maps/station.tscn +++ b/maps/station.tscn @@ -83,7 +83,7 @@ right_boundary = 1.0 turn_time = inf [node name="Cop4" parent="Enemies" instance=ExtResource( 10 )] -position = Vector2( 608, 72 ) +position = Vector2( 600, 120 ) scale = Vector2( -1, 1 ) left_boundary = 3.0 right_boundary = 3.0 @@ -103,7 +103,7 @@ speed = 50 [node name="LaserWall2" parent="Enemies" instance=ExtResource( 15 )] position = Vector2( 760, 88 ) rotation = 1.5708 -left_up_boundary = 2.0 +left_up_boundary = 3.0 speed = 50 move_direction = 1 on_time = inf diff --git a/objects/enemy/laser_wall.tscn b/objects/enemy/laser_wall.tscn index 86eafd7..e1a05e6 100644 --- a/objects/enemy/laser_wall.tscn +++ b/objects/enemy/laser_wall.tscn @@ -33,6 +33,7 @@ default_color = Color( 0.960784, 0.2, 0.258824, 1 ) [node name="RayCast2D" type="RayCast2D" parent="."] position = Vector2( 4, 2 ) cast_to = Vector2( 0, 256 ) +collision_mask = 10 collide_with_areas = true [node name="Timer" type="Timer" parent="."]