Skip to content

Mythical Meadows: Fix Y-sorting problems - #3130

Merged
manuq merged 4 commits into
mainfrom
fix-quest-004-y-sort
Nov 30, 2026
Merged

manuq merged 4 commits into
mainfrom
fix-quest-004-y-sort

Conversation

@xXLeopoldoXx

@xXLeopoldoXx xXLeopoldoXx commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

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

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.
@xXLeopoldoXx
xXLeopoldoXx requested a review from a team as a code owner November 30, 2026 00:07
@xXLeopoldoXx

Copy link
Copy Markdown
Member Author

@manuq I’ve fixed the perspective of the elements by basing them on the OnTheGround setting.

@github-actions

Copy link
Copy Markdown

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.
@manuq

manuq commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

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.

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:

  • A commit with those 2 scenes saved, which reorders the nodes 132a40d
  • A separate commit with the CollectibleItems moved to OnTheGround 83fa138

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.

It remains to adjust the length of the hook so that it can reach the menhir locally.

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

@manuq
manuq merged commit 76e74ff into main Nov 30, 2026
9 checks passed
@manuq
manuq deleted the fix-quest-004-y-sort branch November 30, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mythical Meadows: Fix Y-sorting problems

2 participants