fixed collision issues
This commit is contained in:
@@ -91,6 +91,8 @@ height = 55.9998
|
||||
size = Vector2(54, 71)
|
||||
|
||||
[node name="base_npc" type="CharacterBody2D"]
|
||||
collision_mask = 0
|
||||
collision_priority = 15.0
|
||||
|
||||
[node name="animated_sprite_2d" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_rr6ht")
|
||||
|
@@ -65,7 +65,8 @@ position = Vector2(-131, 147)
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="world_border" type="StaticBody2D" parent="."]
|
||||
collision_priority = 3.0
|
||||
collision_mask = 0
|
||||
collision_priority = 20.0
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="collision_shape_2d" type="CollisionShape2D" parent="world_border"]
|
||||
|
@@ -85,7 +85,6 @@ animations = [{
|
||||
}]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_38v5o"]
|
||||
radius = 10.0
|
||||
height = 54.0
|
||||
|
||||
[node name="player" type="CharacterBody2D"]
|
||||
|
@@ -22,6 +22,7 @@ pass
|
||||
|
||||
[node name="static_body_2d" type="StaticBody2D" parent="."]
|
||||
position = Vector2(0, 1)
|
||||
collision_priority = 20.0
|
||||
|
||||
[node name="collision_shape_2d" type="CollisionShape2D" parent="static_body_2d"]
|
||||
position = Vector2(1, -2)
|
||||
|
@@ -6,6 +6,7 @@
|
||||
size = Vector2(64, 14.625)
|
||||
|
||||
[node name="dialogdebug_cupcake" type="StaticBody2D"]
|
||||
collision_priority = 20.0
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
|
@@ -39,10 +39,9 @@ animations = [{
|
||||
radius = 9.0
|
||||
height = 46.0
|
||||
|
||||
[node name="slime" type="CharacterBody2D"]
|
||||
[node name="slime" type="CharacterBody2D" groups=["enemies"]]
|
||||
collision_layer = 8
|
||||
collision_mask = 9
|
||||
collision_priority = 20.0
|
||||
motion_mode = 1
|
||||
floor_stop_on_slope = false
|
||||
floor_constant_speed = true
|
||||
|
@@ -22,6 +22,7 @@ func OnAudioFinished():
|
||||
radius = 30.8058
|
||||
|
||||
[node name="sound_debug_tile" type="StaticBody2D"]
|
||||
collision_priority = 20.0
|
||||
script = SubResource("GDScript_krkfl")
|
||||
soundOn = false
|
||||
|
||||
|
Reference in New Issue
Block a user