Set the Id of the animation state on the actor when changing animation state#265
Open
Mico27 wants to merge 3 commits into
Open
Set the Id of the animation state on the actor when changing animation state#265Mico27 wants to merge 3 commits into
Mico27 wants to merge 3 commits into
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.