Forum Topic: Replay Button

(173 views • 4 replies)

This topic is 1 page long.

<< < > >>
None

Electronix

Reply To Post Reply & Quote

Posted at: 5/28/06 02:08 PM

Electronix NEUTRAL LEVEL 06

Sign-Up: 09/25/04

Posts: 34

OK guys...sorry to have to ask...but I seem to have misplaced my buttons file (where I keep information about making different buttons...the one I am interested in at the moment is a replay button...could anyone quickly list the code...I have done this;

on (release) { "scene 2" , "frame 1"
}

but to no avail...is there a crucial mistake I am making...

thanks alot

-Electronix-


Angry

Kirk-Cocaine

Reply To Post Reply & Quote

Posted at: 5/28/06 02:10 PM

Kirk-Cocaine EVIL LEVEL 34

Sign-Up: 08/17/03

Posts: 16,550

on (release){
gotoAndStop("Scene 2", 1);
}

If the light is green, the trap is clean.

PSN ID: KirkNG

BBS Signature

None

Electronix

Reply To Post Reply & Quote

Posted at: 5/28/06 02:17 PM

Electronix NEUTRAL LEVEL 06

Sign-Up: 09/25/04

Posts: 34

At 5/28/06 02:10 PM, Kirk_Cocaine wrote: on (release){
gotoAndStop("Scene 2", 1);
}

ahh thankyou...but this seems to send the user somewhere around scene two frame 100...is this just me?

thankyou

-electronix-


None

Electronix

Reply To Post Reply & Quote

Posted at: 5/28/06 02:18 PM

Electronix NEUTRAL LEVEL 06

Sign-Up: 09/25/04

Posts: 34

infact...frame 150 to be precise ;P


None

Rustygames

Reply To Post Reply & Quote

Posted at: 5/28/06 02:20 PM

Rustygames LIGHT LEVEL 18

Sign-Up: 05/07/05

Posts: 6,429

on (release) {
trace ("gotoAndStop/Play only works well with numbers not scenes or labels")
gotoAndStop (1) // Replace 1 with the frame number you want to go to. Remember frame numbers are cumulative over scenes. So if scene 1 has 200 frames then frame 1 of scene 2 will be frame 201
}

- Matt, Rustyarcade.com


All times are Eastern Standard Time (GMT -5) | Current Time: 07:46 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!