for example,if my character is playing idle animation,it suddenly attacks and then go back to idle again,how to set the action?
is it necessary to be like that:
character->addAnimation(0,"attack",false);
character->addAnimation(0,"idle",true);
or it has build in method which I no need to call
character->addAnimation(0,"idle",true);
and it will restore to original animation?