00:00
00:00
Newgrounds Background Image Theme

Ryor just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Doubt about buttons flash 5

377 Views | 4 Replies
New Topic Respond to this Topic

Doubt about buttons flash 5 2006-08-10 07:03:04


i know about gotoandplay and gotoandstop but gotoandstop is just for ending the animation, i want that the buttons stays making the animation stop, leaving it in pause until u press the button...:S

Response to Doubt about buttons flash 5 2006-08-10 07:08:57


At 8/10/06 07:03 AM, Barbaro666 wrote: i know about gotoandplay and gotoandstop but gotoandstop is just for ending the animation, i want that the buttons stays making the animation stop, leaving it in pause until u press the button...:S

on (release){
if (pauseFlag != 1){
stop();
pauseFlash = 1;
} else {
play();
pauseFlag = 0;
}
}

Think that should work. When you hit the button, it checks for a variable named pauseFlag. If the variable is equal to one, the animation plays, and changes the variable to zero. If it is then hit again, and the variable is not equal to one, the animation stops and the flag is set back to one.

Rough cut, and I'm sure everyone else can correct my coding errors


...

BBS Signature

Response to Doubt about buttons flash 5 2006-08-10 07:10:16


I didn't understand a word you said...

Response to Doubt about buttons flash 5 2006-08-10 07:15:16


Thanks but...how do i put those codes, because i cant writte anything i have to choose actions...:S

Response to Doubt about buttons flash 5 2006-08-10 08:36:32


At 8/10/06 07:15 AM, Barbaro666 wrote: Thanks but...how do i put those codes, because i cant writte anything i have to choose actions...:S

Find the button in the Actions Panel that changes it from Standard to Expert Mode. You can then copy and paste the codes I've given you.


...

BBS Signature