Exporting the current animation state #3330
Unanswered
BlackRam-oss
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm integrating motion functions into my game engine to easily launch animations using the "animate" function. The integration is currently complete, but I'm missing the very last thing: saving the current animation state and recreating it later.
Currently, what I'm doing is inserting the arguments passed as parameters to the animate function into the save file, so that it can be started with the same parameters when the game loads. However, I don't think this is enough to recreate an animation with the same characteristics as a previous animation.
From what I've learned from motion, animate uses some values, such as the elapsed time and the starting value (in the case of a repeat), to perform calculations (there are probably others). I was wondering if there was a way to extract this data and set it.
If such a method doesn't exist, is it possible to implement it? (I could help with implementation)
Beta Was this translation helpful? Give feedback.
All reactions