Skip to content

Commit

Permalink
Fix Z Index on platforms in 2D platformer demo (#927)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaipropaganda authored Jul 5, 2023
1 parent a5d736f commit ea37c10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 2d/platformer/level/level.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ position = Vector2(16, 0)
[node name="Platforms" type="Node" parent="."]

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

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

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

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

[node name="PlatformStatic" type="StaticBody2D" parent="Platforms"]
z_index = -1
position = Vector2(569.935, 105.877)
rotation = 0.355618
collision_layer = 16
Expand Down

0 comments on commit ea37c10

Please sign in to comment.