Be a Supporter!

preview for fiorst game trouble

  • 344 Views
  • 12 Replies
New Topic Respond to this Topic
Jurgen
Jurgen
  • Member since: Sep. 6, 2008
  • Offline.
Forum Stats
Member
Level 22
Animator
preview for fiorst game trouble 2008-09-06 18:54:30 Reply

ok im making a game.(called dash, want any info on it go to my userpage) and I just finished a preview. But i wanted to make a replay button. Problem is, i dont know the action script code.

And dont say "on(release){ gotoAndPlay(1)}; " because I want a replay button to replay the whole video! not just that one scene.

Please help(btw the flash doesnt have a preloader, w/e)


GamerTag: MEGAxCptnWalrus

Conlor
Conlor
  • Member since: Jun. 10, 2007
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to preview for fiorst game trouble 2008-09-06 19:00:03 Reply

and I quote your user page:

"09/06/08 Created NG account.

09/06/08 Still hasn't contributed anything to the site, so here's an advertisement:"

if your trolling, you are doing a poor job. The gotoAndPlay code would work, because the nextscenecode would be uneffected, as it is on a different frame.


------------------Serving the bored and insane since 2004.------------------------------

BBS Signature
Doomsday-One
Doomsday-One
  • Member since: Oct. 28, 2005
  • Offline.
Forum Stats
Member
Level 10
Programmer
Response to preview for fiorst game trouble 2008-09-06 19:20:48 Reply

At 9/6/08 06:54 PM, lpfann2 wrote: "on(release){ gotoAndPlay(1)};"

Replace the "gotoAndPlay(1)" with "gotoAndPlay("Scene 1", 1)".
Unless you've changed the name of the scene.


Doomsday-One, working on stuff better than preloaders. Marginally.

Jurgen
Jurgen
  • Member since: Sep. 6, 2008
  • Offline.
Forum Stats
Member
Level 22
Animator
Response to preview for fiorst game trouble 2008-09-06 19:23:25 Reply

At 9/6/08 07:00 PM, Conlor wrote: and I quote your user page:

"09/06/08 Created NG account.

09/06/08 Still hasn't contributed anything to the site, so here's an advertisement:"

if your trolling, you are doing a poor job. The gotoAndPlay code would work, because the nextscenecode would be uneffected, as it is on a different frame.

to the "09/06/08 Created NG account" its cuz i had an account before, then I created a Grounds Gold Account just now so i could post this thread.

and i dont really get what your saying gotoAndPlay(1) only replays that scene its on so it woudn't work.


GamerTag: MEGAxCptnWalrus

Montycarlo
Montycarlo
  • Member since: Mar. 14, 2005
  • Offline.
Forum Stats
Member
Level 24
Blank Slate
Response to preview for fiorst game trouble 2008-09-06 19:38:11 Reply

How could you have even started the game without knowing how to code a simple button?

Something smells like copypasta....

Although practicality beats purity.
Errors should never pass silently.
In the face of ambiguity, refuse the temptation to guess.

Jurgen
Jurgen
  • Member since: Sep. 6, 2008
  • Offline.
Forum Stats
Member
Level 22
Animator
Response to preview for fiorst game trouble 2008-09-06 19:39:13 Reply

At 9/6/08 07:20 PM, Doomsday-One wrote:
At 9/6/08 06:54 PM, lpfann2 wrote: "on(release){ gotoAndPlay(1)};"
Replace the "gotoAndPlay(1)" with "gotoAndPlay("Scene 1", 1)".
Unless you've changed the name of the scene.

it still wont work. " on(release) { gotoAndPlay("Scene 1", 1); } " is the code right? because i didnt change the name of the scene or anything so it should be working but it isn't


GamerTag: MEGAxCptnWalrus

Jurgen
Jurgen
  • Member since: Sep. 6, 2008
  • Offline.
Forum Stats
Member
Level 22
Animator
Response to preview for fiorst game trouble 2008-09-06 19:42:20 Reply

At 9/6/08 07:38 PM, Montycarlo wrote: How could you have even started the game without knowing how to code a simple button?

Something smells like copypasta....

ya..I haven't started the game yet. I know how to code a button, just not a replay button
"on(release) { blah blah blah } whatever. i just dont know the code for replaying the whole movie. I'm obviously not starting the game till i like almost mastered actionscripting


GamerTag: MEGAxCptnWalrus

Doomsday-One
Doomsday-One
  • Member since: Oct. 28, 2005
  • Offline.
Forum Stats
Member
Level 10
Programmer
Response to preview for fiorst game trouble 2008-09-06 20:00:49 Reply

At 9/6/08 07:39 PM, lpfann2 wrote: it still wont work. " on(release) { gotoAndPlay("Scene 1", 1); } " is the code right? because i didnt change the name of the scene or anything so it should be working but it isn't

I forgot to add _root. for you.

on(release) { _root.gotoAndPlay("Scene 1", 1); }

That should work, unless you're working in AS1 or AS3.
If you're using Flash 8, then it will most likely be fine.

If not, tell us what error messages come up.
And make sure it is on the button, not the timeline!


Doomsday-One, working on stuff better than preloaders. Marginally.

Jurgen
Jurgen
  • Member since: Sep. 6, 2008
  • Offline.
Forum Stats
Member
Level 22
Animator
Response to preview for fiorst game trouble 2008-09-06 20:08:17 Reply

At 9/6/08 08:00 PM, Doomsday-One wrote:
At 9/6/08 07:39 PM, lpfann2 wrote: it still wont work. " on(release) { gotoAndPlay("Scene 1", 1); } " is the code right? because i didnt change the name of the scene or anything so it should be working but it isn't
I forgot to add _root. for you.

on(release) { _root.gotoAndPlay("Scene 1", 1); }

That should work, unless you're working in AS1 or AS3.
If you're using Flash 8, then it will most likely be fine.

If not, tell us what error messages come up.
And make sure it is on the button, not the timeline!

i use flash CS3 and it doesnt work. but there isn't any error code. Weird. how does it look in the actionscript, like this?:

on(release) {
_root.gotoAndPlay("Scene 1", 1);
}


GamerTag: MEGAxCptnWalrus

Conlor
Conlor
  • Member since: Jun. 10, 2007
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to preview for fiorst game trouble 2008-09-06 20:15:03 Reply

At 9/6/08 08:08 PM, lpfann2 wrote:
i use flash CS3

GAH! No one can help you, we mostly use AS2.


------------------Serving the bored and insane since 2004.------------------------------

BBS Signature
Jurgen
Jurgen
  • Member since: Sep. 6, 2008
  • Offline.
Forum Stats
Member
Level 22
Animator
Response to preview for fiorst game trouble 2008-09-06 20:27:14 Reply

At 9/6/08 08:15 PM, Conlor wrote:
At 9/6/08 08:08 PM, lpfann2 wrote:
i use flash CS3
GAH! No one can help you, we mostly use AS2.

WHAT?!? are you telling me NO one uses CS3 (or as you guys call it AS3)
THATS bullshit. Theres gotta be someone else


GamerTag: MEGAxCptnWalrus

Kuoke
Kuoke
  • Member since: May. 25, 2006
  • Offline.
Forum Stats
Member
Level 28
Artist
Response to preview for fiorst game trouble 2008-09-06 20:41:27 Reply

At 9/6/08 08:27 PM, lpfann2 wrote: WHAT?!? are you telling me NO one uses CS3 (or as you guys call it AS3)
THATS bullshit. Theres gotta be someone else

Seeing as you don't know how to code in AS3 it wont affect you if you'd just change it to AS2 via File > Publish Settings.


BBS Signature
Jurgen
Jurgen
  • Member since: Sep. 6, 2008
  • Offline.
Forum Stats
Member
Level 22
Animator
Response to preview for fiorst game trouble 2008-09-07 00:19:15 Reply

At 9/6/08 08:41 PM, Kuoke wrote:
At 9/6/08 08:27 PM, lpfann2 wrote: WHAT?!? are you telling me NO one uses CS3 (or as you guys call it AS3)
THATS bullshit. Theres gotta be someone else
Seeing as you don't know how to code in AS3 it wont affect you if you'd just change it to AS2 via File > Publish Settings.

oh ya, i have my action script as 2.0
but it still doesnt work!


GamerTag: MEGAxCptnWalrus