PDA

View Full Version : How do I go from one scene, back to the beginning?


Mattimos
11-14-2007, 03:10 PM
I am making a quiz type game, and have run into a problem. I'm on my third question, and have been using a scene per question, I use an on release event on the game over screen to go back one scene, but, how can I make that action bring a player back to the very beginning?

CarMan1390
11-14-2007, 04:47 PM
I would advise only using a frame per question because it will get tough when you have 10-20 questions. You would have to navigate through all the scenes to get to one question.

But anyway, here is the code. It should seem very easy to you.
on(release){
gotoAndStop("Scene 1", 1);
}
If your first scene name is called "Scene 1", the default scene name, then don't change it. If it is a different name, change it accordingly.

Mattimos
11-14-2007, 07:53 PM
I would advise only using a frame per question because it will get tough when you have 10-20 questions. You would have to navigate through all the scenes to get to one question.

But anyway, here is the code. It should seem very easy to you.
on(release){
gotoAndStop("Scene 1", 1);
}
If your first scene name is called "Scene 1", the default scene name, then don't change it. If it is a different name, change it accordingly.

Thanks man, I was close, but couldn't find what parameters to put in there.

ManEaterGames
11-17-2007, 04:15 PM
Other way too, get your button converted and yada yada yada, and keep that Blue Square around your button, and type

on(release){
gotoAndPlay(1)
}

ManEaterGames
11-17-2007, 04:16 PM
Then push F7 or F6 :)