fixed priority collision issues

This commit is contained in:
2023-02-27 21:07:53 +01:00
parent fc84f8889f
commit 7cbf5c634d
3 changed files with 4 additions and 4 deletions

View File

@@ -65,6 +65,7 @@ position = Vector2(-131, 147)
metadata/_edit_lock_ = true
[node name="world_border" type="StaticBody2D" parent="."]
collision_priority = 3.0
metadata/_edit_lock_ = true
[node name="collision_shape_2d" type="CollisionShape2D" parent="world_border"]

View File

@@ -85,14 +85,14 @@ animations = [{
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_38v5o"]
radius = 7.99997
radius = 10.0
height = 54.0
[node name="player" type="CharacterBody2D"]
process_mode = 1
collision_layer = 5
collision_mask = 5
collision_priority = 5.0
collision_priority = 2.0
motion_mode = 1
script = ExtResource("1_qehox")
@@ -131,7 +131,7 @@ metadata/_edit_lock_ = true
visible = false
[node name="collision_shape" type="CollisionShape2D" parent="."]
position = Vector2(0, 36)
position = Vector2(0, 35)
rotation = 1.5708
shape = SubResource("CapsuleShape2D_38v5o")

View File

@@ -46,7 +46,6 @@ collision_priority = 20.0
motion_mode = 1
floor_stop_on_slope = false
floor_constant_speed = true
platform_on_leave = 2
script = ExtResource("1_l1742")
[node name="animated_sprite_2d" type="AnimatedSprite2D" parent="."]