|
-
Many buttons ... one start
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?
-
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|