Fix y-sort not applying to TileMapLayers

origin/master
John Montagu, the 4th Earl of Sandvich 2024-06-07 07:10:23 -07:00
parent 2ddf6dca5a
commit 8512bfd2de
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
3 changed files with 3 additions and 3 deletions

View File

@ -23,6 +23,7 @@ Spawners = NodePath("Spawners")
Markers = NodePath("Markers")
[node name="Layers" type="Node2D" parent="."]
y_sort_enabled = true
[node name="z-index 0" type="TileMapLayer" parent="Layers"]
y_sort_enabled = true

View File

@ -55,7 +55,6 @@ size = Vector2(40, 20)
size = Vector2(64, 360)
[node name="Arena" node_paths=PackedStringArray("Entities", "Areas", "Spawners", "Markers") instance=ExtResource("1_ifiic")]
tile_set = ExtResource("2_x0mh7")
Entities = NodePath("Entities")
Areas = NodePath("Areas")
Spawners = NodePath("Spawners")
@ -89,7 +88,7 @@ tile_set = ExtResource("2_x0mh7")
[node name="z-index 0 (walls)" parent="Layers" index="6"]
tile_set = ExtResource("2_x0mh7")
[node name="CanvasModulate" parent="." index="2"]
[node name="CanvasModulate" parent="." index="1"]
color = Color(0.317647, 0.184314, 0.345098, 1)
[node name="Static@TorchLamp" parent="Props" index="0" instance=ExtResource("6_jy3pc")]

View File

@ -384,7 +384,7 @@ tile_set = ExtResource("2_m6h7j")
[node name="z-index 0 (walls)" parent="Layers" index="6"]
tile_set = ExtResource("2_m6h7j")
[node name="CanvasModulate" parent="." index="1"]
[node name="CanvasModulate" parent="." index="2"]
color = Color(0.5, 0.5, 0.5, 1)
[node name="Static@Godrays" type="Node2D" parent="Props" index="0"]