Skip to content

Grappling hook: Add hook indicators#2215

Open
manuq wants to merge 3 commits into
mainfrom
indicators
Open

Grappling hook: Add hook indicators#2215
manuq wants to merge 3 commits into
mainfrom
indicators

Conversation

@manuq
Copy link
Copy Markdown
Collaborator

@manuq manuq commented May 18, 2026

UI indicators: Add specific asset for interacting

Rename the assets to how they are used in the game. Duplicate the previously named "indicator_down.png" and modify this asset so it looks like a yellow arrow. The red one (which matches the aim indicator around the player) will be used for indicating when something can be hooked.

Grappling hook: Add hook indicators

Maintain an array of observers in HookableArea. In the same way as InteractArea.
But these are the HookControl nodes that are pointing at this area.

Add a marker for the indicator in HookableBox. The fallback that automatically
creates the marker 32 pixels above the anchor point seems fine for pins and
needles.

Grappling hook: Pause aiming also when hooking

The last hook control was set to the AIMING_PAUSED state only when hitting a
wall or the air. It should pause too while hooking. As before, if the hooked
area has a hook control (like the needles), disable this control to "transfer"
the aiming to the next one.

Resolve #1503

Rename the assets to how they are used in the game. Duplicate the previously
named "indicator_down.png" and modify this asset so it looks like a yellow
arrow. The red one (which matches the aim indicator around the player) will be
used for indicating when something can be hooked.
@github-actions
Copy link
Copy Markdown

Play this branch at https://play.threadbare.game/branches/endlessm/indicators/.

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

Maintain an array of observers in HookableArea. In the same way as InteractArea.
But these are the HookControl nodes that are pointing at this area.

Add a marker for the indicator in HookableBox. The fallback that automatically
creates the marker 32 pixels above the anchor point seems fine for pins and
needles.

Resolve #1503
@manuq manuq changed the title UI indicators: Add specific asset for interacting Grappling hook: Add hook indicators May 18, 2026
@manuq manuq marked this pull request as ready for review May 18, 2026 20:17
@manuq manuq requested a review from a team as a code owner May 18, 2026 20:17
@manuq
Copy link
Copy Markdown
Collaborator Author

manuq commented May 18, 2026

I recommend testing this in the following scenes:

recording.webm

It seems to work. The problem I'm still trying to solve is that the indicator stays after throwing. This is noticeable when collecting buttons:

recording.webm

The HookControl has a AIMING_PAUSED state and I'm trying to use it, but that state is obviously not being set.

The last hook control was set to the AIMING_PAUSED state only when hitting a
wall or the air. It should pause too while hooking. As before, if the hooked
area has a hook control (like the needles), disable this control to "transfer"
the aiming to the next one.
@manuq
Copy link
Copy Markdown
Collaborator Author

manuq commented May 19, 2026

OK I've found and fixed the issue above. It was indeed a case that was missing setting the control to "aiming paused".

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.

Grappling hook: Explore "hookable" indicator

1 participant