;

PDA

Click to See Complete Forum and Search --> : Many buttons ... one start


evilsined
05-19-2008, 06:25 AM
Hey I am having this problem.
I have an menu that contains many buttons, an a place where the content is shown (the content has a staring animation). But each time I click a button the animations start again ... if I click another button it start again.
What I need is when I click any button it start the content animation after if I click any button it won't start again.
Any suggestions, ideas, or help?

domdomr
05-20-2008, 05:56 PM
Well, You can do a variable('animation' for my example) on frame 1. And do an If on every button. Like this

if(animation == 1){
//Show your content
}
else{
//Play animation
animation = 1
}

Do it on every button, so it will play animation only once, because after this, animation will be '1' so the else's instruction won't be done.