Skip to content

Commit ea37c10

Browse files
Fix Z Index on platforms in 2D platformer demo (#927)
1 parent a5d736f commit ea37c10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: 2d/platformer/level/level.tscn

+2-1
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ position = Vector2(16, 0)
229229
[node name="Platforms" type="Node" parent="."]
230230

231231
[node name="Platform" parent="Platforms" instance=ExtResource("3")]
232+
z_index = 0
232233
position = Vector2(707, 400)
233234

234235
[node name="AnimationPlayer" type="AnimationPlayer" parent="Platforms/Platform"]
@@ -239,6 +240,7 @@ libraries = {
239240
}
240241

241242
[node name="Platform2" parent="Platforms" instance=ExtResource("3")]
243+
z_index = 0
242244
position = Vector2(-47, 80)
243245

244246
[node name="AnimationPlayer" type="AnimationPlayer" parent="Platforms/Platform2"]
@@ -249,7 +251,6 @@ libraries = {
249251
}
250252

251253
[node name="PlatformStatic" type="StaticBody2D" parent="Platforms"]
252-
z_index = -1
253254
position = Vector2(569.935, 105.877)
254255
rotation = 0.355618
255256
collision_layer = 16

0 commit comments

Comments
 (0)