- Home /
How to add animation to play after user choose the wrong answer
Okay im a really newbie so sorry for that hehe anyway my question is how can i add animation to my code after the user chooses the wrong answer anyway this program is a QandA game where in when you choose the correct answer the character will attack and when you choose the wrong one the character will miss
Comment
Best Answer
Answer by hug0 · Jan 31, 2014 at 10:48 PM
Ok to make a animation play after a wrong button is presse you have to specify what button is the true, by a if state for example:
if(buttonTrue = true){
//go to next
}else{ //bt is false
warning_popsUP = true;
//You have to make something say the warning_popsUP_End = true
if(warning_popsUP_End = true){
//play animation
animation.Play("animation_name");
}
I hope that helps :)
okay its working and thankyou for that but the GUI question box wont close after i choose a wrong answer it should close then animation will play can you $$anonymous$$ch me how to do that