Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Restarting a game
- EmmaTaylor
-
9 posts
Restarting a game
Hi there,
Just wondering if there was a really simple way of restarting my game once it has been completed. I have tried a few different ways, but because it is a matching game where objects disappear if correctly matched, they don't seem to reappear when the game restarts? Any help would be great, thanks!
Just wondering if there was a really simple way of restarting my game once it has been completed. I have tried a few different ways, but because it is a matching game where objects disappear if correctly matched, they don't seem to reappear when the game restarts? Any help would be great, thanks!
- drmcw
-
1000+ posts
Restarting a game
You should have a when green flag clicked script which initialises things for each sprite and the stage as needed. So if a sprite is likely to end up hidden during a game then it should have a show as part of its initialisation. If you want to create levels or have your own restart mechanism then you need to initallise things at the beginning of a level or a restart so as part of a
script so that you can then use a broadcast to change a level or restart.
- scubajerry
-
1000+ posts
Restarting a game
Use one green flag somewhere in the game ( I put it in the stage) that looks something like
Last edited by scubajerry (Jan. 9, 2014 12:32:54)
- Cturnerdhf
-
1 post
Restarting a game
The initialize variables list isn't a button and even though I knew how to do previously to this conversation, you should be clearer in your responses scubajerry
- mariyahavila
-
1 post
Restarting a game
on my game, i'm trying to make my rocket so that whenever it hits a orange ball it will start over to the beginning. pleeeeaaasssee help me projest due tomorrow!!
- GunChleoc
-
500+ posts
Restarting a game
I made a remix - have a look at what I did with the rocket sprite.
https://scratch.mit.edu/projects/65321910/
https://scratch.mit.edu/projects/65321910/
- Beanpole9
-
2 posts
Restarting a game
hi! can you tell me how to make a sprite die and reappear in a cirtian position????? pleeeaaaaseeee????
- SuperMarioFan4
-
100+ posts
Restarting a game
..I'm surprised that the Scratch Team didn't close this topic after all the spam and necroposting!
- NoMod-Programming
-
1000+ posts
Restarting a game
Yup. ..I'm surprised that the Scratch Team didn't close this topic after all the spam and necroposting!
- Harakou
-
1000+ posts
Restarting a game
If you see something that needs our attention, report it. We probably won't see it otherwise. ..I'm surprised that the Scratch Team didn't close this topic after all the spam and necroposting!
Edit: You already had (missed that one) - thanks!
Last edited by Harakou (Feb. 14, 2016 06:26:26)
- Discussion Forums
- » Help with Scripts
-
» Restarting a game