Skip to content

FollowWalkBehavior: Stop when target is reached#2014

Merged
wjt merged 1 commit intomainfrom
follow-walk-stopping
Mar 4, 2026
Merged

FollowWalkBehavior: Stop when target is reached#2014
wjt merged 1 commit intomainfrom
follow-walk-stopping

Conversation

@manuq
Copy link
Copy Markdown
Collaborator

@manuq manuq commented Mar 4, 2026

Add a boolean property to stop the character when the target is reached, and set it to enabled by default.

Previously the behavior was that the controlled character stays walking around the target. This is still possible by setting the new property to false.

Add a boolean property to stop the character when the
target is reached, and set it to enabled by default.

Previously the behavior was that the controlled character
stays walking around the target. This is still possible
by setting the new property to false.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 4, 2026

Play this branch at https://play.threadbare.game/branches/endlessm/follow-walk-stopping.

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

@manuq
Copy link
Copy Markdown
Collaborator Author

manuq commented Mar 4, 2026

I have setup a scene with 3 characters for testing. One is controlled with input, the second follows the first, and the third follows the second. I have removed the 2nd and 3rd from any collision layers, so they are basically ghosts.

This is the existing behavior:

Grabacion.de.pantalla.desde.2026-03-04.08-45-57.mp4

This would be the new default:

Grabacion.de.pantalla.desde.2026-03-04.08-57-02.mp4

It allows a crew of characters like seen in some RPGs.

It was very nice to make this change with the game running ("hot reloading"). The two videos are taken in the same run, during which I changed the script.

@manuq manuq marked this pull request as ready for review March 4, 2026 12:13
@manuq manuq requested a review from a team as a code owner March 4, 2026 12:13
@wjt wjt merged commit f482117 into main Mar 4, 2026
6 checks passed
@wjt wjt deleted the follow-walk-stopping branch March 4, 2026 13:03
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.

2 participants