Skip to content

Attack bar and tick number follow the True Tile Movement Animations model - #205

Open
LokiRushin wants to merge 1 commit into
ngraves95:mainfrom
LokiRushin:true-tile-model-anchor
Open

LokiRushin wants to merge 1 commit into
ngraves95:mainfrom
LokiRushin:true-tile-model-anchor

Conversation

@LokiRushin

Copy link
Copy Markdown

Problem

True Tile Movement Animations hides the player and draws its own model that follows the true tile. The attack bar and the tick number are anchored to Player.getLocalLocation(), which is the hidden player, so with both plugins on they trail behind the character you actually see.

Change

The plugin subscribes to the PluginMessage that True Tile Movement Animations publishes with the model's location (Posiedien76/TrueMovementAnimationsPlugin#32: namespace true-tile-movement-animation, name local-player-model-location). Both overlays use that location while it is being published.

Without that plugin, when the message says the real player is shown, when it is older than two game ticks, or when it is for another world view, everything is drawn exactly where it is today (the BOTTOM tick position still goes through player.getCanvasTextLocation). No new config option.

Testing

This only takes effect once Posiedien76/TrueMovementAnimationsPlugin#32 is merged; until then it changes nothing.

🤖 Generated with Claude Code

https://claude.ai/code/session_01N4x6LN1VZySxxbTN4RuFHP

…number

True Tile Movement Animations hides the player and draws its own model that
follows the true tile, so the attack bar and the tick number (anchored to
the hidden player) trail behind the visible character.

Listen for the model location that plugin publishes as a PluginMessage and
anchor both overlays to it while it is being published. Without that
plugin, or when the location is stale, nothing changes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N4x6LN1VZySxxbTN4RuFHP
@Lexer747

Copy link
Copy Markdown
Collaborator

I don't want that unit test, I'd much prefer if you put the logic in its own file just for this change. I don't want other plugin code in the attack timer really, but i wouldn't mind calling a well isolated wrapper function.

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