Optimized scene tree and debugged some area detection
This commit is contained in:
@@ -12,9 +12,7 @@ height = 2.0
|
||||
[sub_resource type="CircleShape2D" id=2]
|
||||
radius = 50.0
|
||||
|
||||
[node name="Glowing Ghost" type="KinematicBody2D" groups=[
|
||||
"enemies",
|
||||
]]
|
||||
[node name="Glowing Ghost" type="KinematicBody2D" groups=["enemies"]]
|
||||
collision_layer = 2
|
||||
script = ExtResource( 4 )
|
||||
|
||||
@@ -29,10 +27,10 @@ position = Vector2( 0, -3 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="Player Detector" type="Area2D" parent="."]
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
collision_layer = 0
|
||||
collision_mask = 2
|
||||
input_pickable = false
|
||||
monitorable = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player Detector"]
|
||||
visible = false
|
||||
|
Reference in New Issue
Block a user