Prevents small crouch if it's not a used animation

Also added some functions for debugging and toggling visible collisions.
Also fixed some inconsistencies with both small and big collisions.
This commit is contained in:
KirbyKidJ
2025-09-26 11:46:09 -07:00
parent 4f06366c94
commit 3a3340ed88
2 changed files with 15 additions and 9 deletions

View File

@@ -711,7 +711,7 @@ position = Vector2(0, -13)
collision_layer = 0
collision_mask = 384
[node name="SmallShape" type="CollisionShape2D" parent="LavaPoisonDetect"]
[node name="SmallShape" type="CollisionShape2D" parent="LavaPoisonDetect" groups=["SmallCollisions"]]
position = Vector2(0, 5.75)
shape = SubResource("RectangleShape2D_uwhl4")
debug_color = Color(1, 0, 0, 0.419608)
@@ -1057,6 +1057,7 @@ script = ExtResource("35_nbkfn")
[node name="BigCollision" type="CollisionPolygon2D" parent="." groups=["BigCollisions"]]
visible = false
polygon = PackedVector2Array(-4, -2, -2, 0, 2, 0, 4, -2, 4, -23, 1, -28, -1, -28, -4, -23)
one_way_collision = true
script = ExtResource("35_nbkfn")
[node name="FootL" type="CollisionShape2D" parent="." groups=["StepCollision"]]