- Home /
How to play two animations simultaneously one after another ?
what I did is, I use the animation.playqueued but I cant make it work and i dont know why, what happens is both animation will play at the same time, but what I want is after I press a button, and plays the animation, another animation will automatically play after the first one finishes so here's the code
private void HandleAnswer(int answer) {
if (answer == 1)
{
ShowIncorrect = false;
ShowCorrect = true;
Poop = false;
animation.PlayQueued("Wrong answer",QueueMode.PlayNow);
Enemy.animation.PlayQueued("ENMattck",QueueMode.CompleteOthers);
NextQuestion();
}
else {
ShowIncorrect = true;
ShowCorrect = false;
Poop = false;
animation.PlayQueued ("Wrong answer",QueueMode.PlayNow);
Enemy.animation.PlayQueued("ENMattck", QueueMode.CompleteOthers);
}
}
Comment