Monster Racer Rush
Select between 5 monster racers, upgrade your monster skill and win the competition!
4.18 / 5.00 3,534 ViewsBuild and Base
Build most powerful forces, unleash hordes of monster and control your soldiers!
3.80 / 5.00 4,200 ViewsSo because I'm almost done my first animation after more than five years lurking around here on Newgrounds, I want to figure out how to make a replay button in my animation. I know how to jump back to the first frame, but I have multiple scenes.
Thank you all so much for your help.
The quieter you become, the more you can hear.
At 12/14/12 04:07 PM, SFMF wrote: So because I'm almost done my first animation after more than five years lurking around here on Newgrounds, I want to figure out how to make a replay button in my animation. I know how to jump back to the first frame, but I have multiple scenes.
Thank you all so much for your help.
This should actually be asked in the flash forum, but... use Frame Labels.
Make a keyframe where you want the movie to jump back to... then in the properties panel, give it a name (can't start with a number, no spaces or weird characters, so keep it simple... something like 'startHere' ...then add the code to the replay button:
on release {
gotoAndPlay ("startHere");
}
...that's for AS2, btw.
At 12/14/12 04:07 PM, SFMF wrote: So because I'm almost done my first animation after more than five years lurking around here on Newgrounds, I want to figure out how to make a replay button in my animation. I know how to jump back to the first frame, but I have multiple scenes.
Thank you all so much for your help.
If you're living in 2012 you'd want to use AS3. Make a movieclip and give it an instance name of "replaybutton".
Write this on the frame:
stop();
replaybutton.addEventListener(MouseEvent.CLICK,toreplay);
function toreplay(e:MouseEvent){
gotoAndPlay(1);
}
If you want it to go to another frame, change the number between "()" on the "gotoAndPlay"-line :)
Check out my flash animations, and games. I've also made some bad music, and art ;)
At 12/14/12 04:07 PM, SFMF wrote: So because I'm almost done my first animation after more than five years lurking around here on Newgrounds, I want to figure out how to make a replay button in my animation. I know how to jump back to the first frame, but I have multiple scenes.
Thank you all so much for your help.
Why do you have the same signature as me? This is disturbing.