Hi,
I'm a newbie for 2dtoolkit.
Thanks for this awesome tool.
However, I have a question:
Is there any way to play animation by frame safely? (eg: some scripts in tk2d package?)
My requirement is :
//called by simulation framework
void OnStateChanged(var state)
{
if(state==States.Walk)
{
tk2dAnimator.SetClip("Walk", true); //"true" means need reset frame
}
//....
}
//called by simulation framework
void OnStateUpdate ()
{
tk2dAnimator.NextFrame(); //every call NextFrame will show corresponding sprite by frame sequence.
}
my expectation is the animator synchronous with simulation update.
Very thanks.