Skip to content

Set the Id of the animation state on the actor when changing animation state#265

Open
Mico27 wants to merge 3 commits into
chrismaltby:mainfrom
Mico27:feat_actor_animation_state_field
Open

Set the Id of the animation state on the actor when changing animation state#265
Mico27 wants to merge 3 commits into
chrismaltby:mainfrom
Mico27:feat_actor_animation_state_field

Conversation

@Mico27

@Mico27 Mico27 commented Jan 30, 2026

Copy link
Copy Markdown

Set the Id of the animation state on the actor when changing animation state.

This will allows to track which animation state an actor is currently using.

Added the property field, the gbvm operation and the event to get the animation state

image

chrismaltby/gb-studio#1940

Note that I made the assignation of the animation state id outside of the load_animations function as I didnt want to change the function signature pass the actor instead of the animations field. If we think its a better idea to change that and do the assignation within load_animations, I can change that.

…n state

Set the Id of the animation state on the actor when changing animation state.
This will allows to track which animation state an actor is currently using.
Modified adventure and platform scene animation state overrides to revert to the player previous animation state instead of always the default state.
I didn't created it yet, but we could have a GBVM event that allows to return the current animation state of an actor.
…event

Implement new animation state property field and get animation state event
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.

1 participant