Skip to content

Commit a26b614

Browse files
committed
Platformer: floating platforms collide from top
Change the floating platforms to collide only from the top.
1 parent 5bbfcbd commit a26b614

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

game-03/components/platform/float_platform.tscn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ freeze_mode = 1
108108
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
109109
position = Vector2(0, 56)
110110
shape = SubResource("RectangleShape2D_5opsn")
111+
one_way_collision = true
111112

112113
[node name="TileMapLayer" type="TileMapLayer" parent="RigidBody2D"]
113114
tile_map_data = PackedByteArray(0, 0, 255, 255, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0)

0 commit comments

Comments
 (0)