Komag
6 years agoRoku Guru
animated sprite animation tick counter?
So I have animated sprite with regions, each set to time 96
spriteRegion.GetTime()
96
If I run
Compositor.AnimationTick(24)
then after running that four times, it will add up to 96, and the animated sprite will animate to the next frame
My question is this - how can I check that counter? How can I find out if it's at 0 or 24 or 48 or 72? There is nothing in the documentation that helps.
It MUST be something stored within the sprite itself, or the sprite region itself, but there is no method to access it that I'm aware of.
Any help?
spriteRegion.GetTime()
96
If I run
Compositor.AnimationTick(24)
then after running that four times, it will add up to 96, and the animated sprite will animate to the next frame
My question is this - how can I check that counter? How can I find out if it's at 0 or 24 or 48 or 72? There is nothing in the documentation that helps.
It MUST be something stored within the sprite itself, or the sprite region itself, but there is no method to access it that I'm aware of.
Any help?