Skip to content

Stealth Level: Root node has Y-Sort enabled #2780

Closed

Description

@manuq

Threadbare version

main

Affected scene

res://scenes/quests/lore_quests/quest_001/3_stealth_level/stealth_level.tscn

Description

The Stealth level has Y Sort Enabled set at the root node. And all the characters and props are direct children of the root node (although @Leonardo-UTP started fixing this in #1331). The problem with this that the TileMapLayer nodes are sorted too. So if we ever extend the scene upwards, above the X axis into a negative Y position, the characters and props would be drawn below the TileMapLayers. This is similar to #2386

  • Disable Y Sort from the root node.
  • Add a Node2D as parent of all the things on the ground (characters and props). With Y Sort Enabled and named "OnTheGround".
  • Group the things on the ground for better organization, adding more y-sorted Node2D nodes and named properly.
XP Summary (total 175)
Subdomain Skill XP
Game Design: Game Feel & UX Problem Solving 50
Game Design: Game Feel & UX Creativity & Design Thinking 50
Game Design: Game Feel & UX Technical Literacy 75

Checklist

  • I've reviewed and agree to follow the code of conduct

Activity

  1. added theissue type on Aug 24, 2026
  2. Leonardo-UTP commented on Sep 21, 2026

    @Leonardo-UTP
    Contributor

    I will work on this issue.

  3. Leonardo-UTP commented on Sep 22, 2026

    @Leonardo-UTP
    Contributor
  4. Leonardo-UTP commented on Sep 23, 2026

    @Leonardo-UTP
    Contributor

    I finished the changes for this issue. Before making the changes, I compared the problem with the related issues mentioned and reviewed other project scenes as references, mainly NO_EDIT Stealth, Void Runner, and Fray’s End, to understand how OnTheGround and Y-Sorting are properly organized.

    After making the changes, I tested the level to verify that Y-Sorting works correctly and that elements such as the player, guards, checkpoints, collectible, and cameras continue to work as expected.

    During these tests, I noticed an error in the output related to the level's Helper. I had placed the Helper inside OnTheGround with the intention of following the structure used in other scenes, such as Void Runner. However, after reviewing the error and the corresponding line, I noticed that there is a specific dependency related to the location of this Helper. For this reason, I decided to keep it in its original position.

    In the first gameplay video, the changes can be seen working, although the error mentioned above also appears in the output. After correcting it, I performed a second test and recorded another video to confirm that the level continues to work correctly and that the Helper error no longer appears.

    Gameplay video: [Threadbare #2780 – Stealth Level Y Sorting Test]

    Gameplay video: [After Helper fix]

    Image Image Image Image
  5. added a commit that references this issue on Sep 23, 2026
    5d66886
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions