Repository navigation
Mythical Meadows: Fix Y-sorting problems - #3130
Conversation
The levels of the lore quest 4 put the player inside OnTheGround, but left trees, bushes, houses, NPCs and enemies as direct children of the root, or in groups without Y-sort. Nodes are only sorted against their siblings, so the player was always drawn on top of them, or always behind (the_golden_meadow also forced it with z_index 500 on Trees). Follow the Visuals example in Dev Archipelago: put everything that is on the ground under an OnTheGround node with Y-sort enabled. In the levels where the nodes had other nodes as parent, enable Y-sort in those too. Remove the z_index workarounds. It remains to adjust the length of the hook so that it can reach the menhir locally.
|
@manuq I’ve fixed the perspective of the elements by basing them on the |
|
Play this branch at https://play.threadbare.game/branches/endlessm/fix-quest-004-y-sort/. (This launches the game from the start, not directly at the change(s) in this pull request.) |
ab0f7cf moved nodes to OnTheGround by editing the scene files as text, leaving their sections between other nodes. Godot writes the nodes in tree order, so the next save in the editor would move them all. Do that now, so later changes have a clean diff. The scenes are the same.
From the_golden_meadow.tscn
The result looks fine. I noticed 2 things missing: the 2 CollectibleItems in the_forest_of_sorrows.tscn and night_valley.tscn. I moved them to "OnTheGround", then saved, and got many nodes in the scene rearranged. It looks like you edited the scenes files through scripting, not from the editor. So I added:
Next time, please use the editor or otherwise comment in your PR how are you editing the scenes. And make sure opening and saving them in the editor doesn't provoke a noise diff.
I see this is why you added "editable children" again in a menhir, which I reverted in a third commit: 1b8338f Nope, the player should have the "longer thread" powerup at this point. Because the only way to enter the Mythical Meadows is by first completing the Void quest, in which that ability is obtained. The way to test it quickly is by using the debug options from the game menu to mark the Void quest as completed and grant the longer thread ability. Check how I do it in this video: mythical-test.webm |
The levels of the lore quest 4 put the player inside OnTheGround, but left trees, bushes, houses, NPCs and enemies as direct children of the root, or in groups without Y-sort. Nodes are only sorted against their siblings, so the player was always drawn on top of them, or always behind (the_golden_meadow also forced it with z_index 500 on Trees).
Follow the Visuals example in Dev Archipelago: put everything that is on the ground under an OnTheGround node with Y-sort enabled. In the levels where the nodes had other nodes as parent, enable Y-sort in those too. Remove the z_index workarounds.
Resolve #3106