Skip to content

Stealth tutorial: Prevent guard from detecting player on spawn point - #2808

Merged
manuq merged 4 commits into
endlessm:mainfrom
IDynamixI985:spawnpoint
Sep 3, 2026
Merged

Stealth tutorial: Prevent guard from detecting player on spawn point#2808
manuq merged 4 commits into
endlessm:mainfrom
IDynamixI985:spawnpoint

Conversation

@IDynamixI985

@IDynamixI985 IDynamixI985 commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

In the tutorial stealth level, the lower guard was previously able to detect the player immediately upon respawning at the first checkpoint/spawn point when turning around at the end of their patrol path.

To fix this and provide better pacing:

  • Adjusted the initial path and level geometry near the spawn point to ensure the player remains safe upon respawning.
  • Updated the path layout slightly so the movement toward the next section feels more active and engaging rather than just walking in a straight line.
  • Adjusted the sand path visual cues accordingly to align with the new safe spawn area.
  • Replaced the dim area's 'CollisionShape2D' with a 'CollisionPolygon2D' set to solid mode to properly adapt the cave darkness to the new layout.

Resolves #2529

@IDynamixI985

Copy link
Copy Markdown
Contributor Author

Hi, I've changed the path a little so it's not straight. Is this okay, or should I leave it as it was at the beginning—but keep the change to the spawn point so the guard doesn't catch the player?

image

@github-actions

github-actions Bot commented Aug 30, 2026

Copy link
Copy Markdown

Test build no longer available.

@manuq

manuq commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

First off, I confirm that the spawn point is safe now!

Hi, I've changed the path a little so it's not straight. Is this okay, or should I leave it as it was at the beginning—but keep the change to the spawn point so the guard doesn't catch the player?

I think the non-straight path works, although wasn't part of the issue. But if you do it, please adjust the shadows and foam tiles. I'm marking in red the extra shadows and foam that should be removed, and in yellow the tiles missing foam:

This is how it looked before, for comparing them:

Screenshot From 2026-08-31 13-28-05 Screenshot From 2026-08-31 13-29-13

@manuq manuq left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there!

@IDynamixI985

Copy link
Copy Markdown
Contributor Author

Hi, I've already made the changes. There's nothing else to change, right?

@IDynamixI985
IDynamixI985 requested a review from manuq August 31, 2026 22:55

@manuq manuq left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more small thing: the interior transition to dim the lights has changed. Before it was exactly at the cave openings:

Image

Now it is:

Image

Can you adjust it to be as before?

@IDynamixI985

Copy link
Copy Markdown
Contributor Author

I can do that, but the transition would happen when the player is in this spot. I could move the cave's exit one block further, and it would be exactly right.
image

@IDynamixI985
IDynamixI985 requested a review from manuq September 1, 2026 22:32
@manuq

manuq commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

I can do that, but the transition would happen when the player is in this spot. I could move the cave's exit one block further, and it would be exactly right. image

I see. How can it be fixed? Suggestions:

  • Use a polygon shape instead of a rectangle.
  • Or change the elevation tiles at the cave exit.
  • Or redo your work, now considering this, and focusing on doing as few changes as possible to prevent guard from detecting player on spawn point.

@wjt

wjt commented Sep 2, 2026

Copy link
Copy Markdown
Member

I like the new curved path, nice solution. Personally I would take options 1 or 2 from @manuq's suggestions :)

@wjt wjt changed the title Stealh tutorial: Prevent guard from detecting player on spawn point Stealth tutorial: Prevent guard from detecting player on spawn point Sep 2, 2026
@IDynamixI985

IDynamixI985 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

I've changed the CollisionShape2D type to CollisionPolygon2D. Is that okay? Is there something else I need to do?
image

@manuq manuq left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! Thanks for adjusting the dim area! Please update the pull request description with this new change, so we can merge it.

@IDynamixI985

Copy link
Copy Markdown
Contributor Author

Hi, I've changed the description

@IDynamixI985
IDynamixI985 requested a review from manuq September 2, 2026 22:20
@manuq
manuq merged commit 29e6aa7 into endlessm:main Sep 3, 2026
7 checks passed
@manuq

manuq commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

@IDynamixI985 thanks!

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.

Tutorial stealth: First spawn point is not safe from first guard

3 participants