Skip to content

Conversation

@wjt
Copy link
Member

@wjt wjt commented Jan 13, 2026

Previously this StaticBody2D had its collision_layer and collision_mask
both set to the default, 1 (i.e. "players"). This caused the guards in
stealth_sequence_combo to detect and attack rocks, without any success.

Fix the collision_layer to 5 ("walls"), which matches the non-musical
rock, and unset collision_mask (the rock does not detect collisions).

Fix the same thing in the Champ copy of this scene.

Also fix many other objects that had default collision layers.

Resolves #1822

wjt added 9 commits January 13, 2026 17:39
This is just a static rock. The hint rocks in the sequence puzzle are
SequencePuzzleHintSigns.
Previously teacher_desk.tscn had the default StaticBody2D
collision_layer and collision_mask, which were then overridden in the
scene where it is instantiated.

Move the setting to the desk scene. Remove the collision_mask: it does
not need to detect collisions, only be collided with.
Previously this object was in the "players" collision layer (the
default).

Instead make it a wall and a sight occluder.

Unset its mask: it does not need to detect collisions, only be collided
with.
Previously this used the "under bridge water" tile for the whole lake
and then blocked off the bits the player shouldn't be able to cross with
a StaticBody2D.

Instead use the non-walkable water tile for the exposed water.
The tower should be a wall; the goblin should be an NPC. Previously they
were in the "players" layer. (It doesn't really matter because they are
static and the player can't reach them.)
This is not a player; it is an NPC.
Previously this StaticBody2D had its collision_layer and collision_mask
both set to the default, 1 (i.e. "players"). This caused the guards in
stealth_sequence_combo to detect and attack rocks, without any success.

Fix the collision_layer to 5 ("walls"), which matches the non-musical
rock, and unset collision_mask (the rock does not detect collisions).

Fix the same thing in the Champ copy of this scene.

Resolves #1822
@wjt wjt requested review from a team as code owners January 13, 2026 17:44
@github-actions
Copy link

Play this branch at https://play.threadbare.game/branches/endlessm/wjt/sequence-puzzle-object-fix-collision-layers.

(This launches the game from the start, not directly at the change(s) in this pull request.)

@wjt wjt merged commit 4c04eea into main Jan 14, 2026
6 checks passed
@wjt wjt deleted the wjt/sequence-puzzle-object-fix-collision-layers branch January 14, 2026 14:02
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.

Guards can now "detect" rocks in stealth/sequence puzzle combo

2 participants