Discuss Scratch

Sssara445
New to Scratch
5 posts

HELP!

Hi,
I am making a quiz game, and i need to make a restart button which will only appear when the player has had a game over. So once the player has lost, the button will appear, and the player can click it so the game can restart.
Any help will be appreciated!
Thanks
SuperSquidXX
Scratcher
30 posts

HELP!

So I'd do it with broadcasts, for example:

when I receive [GAME OVER]
show
forever
if <touching [mouse-pointer] ?> then
if <mouse down?> then
broadcast [RESTART]

end
end
when I receive [RESTART]
hide

I hope I helped! -SuperSquidXX

Last edited by SuperSquidXX (Nov. 11, 2018 09:36:56)

Vicream_Creator
Scratcher
100+ posts

HELP!

Sssara445 wrote:

Hi,
I am making a quiz game, and i need to make a restart button which will only appear when the player has had a game over. So once the player has lost, the button will appear, and the player can click it so the game can restart.
Any help will be appreciated!
Thanks
I suggest you replace all the game scripts'
when green flag clicked

by a “fake” green flag (a broadcast):

when I receive [green flag]
show
*INSERT QUIZ SCRIPTS*

For the “restart” button:
when this sprite clicked
broadcast [green flag]
hide

For the sprites meant to hide (stats, text such as “YOU LOST”,…)
when I receive [green flag]
hide
-Space_Cat-
Scratcher
18 posts

HELP!

If you share the project I will remix it on my test account @Test_N_Space and put in the script
NilsTheBest
Scratcher
1000+ posts

HELP!

@Vicream_Creator has a better suggestion, if you had any doubts ^^

NilsTheChair | 5 years on Scratch | 4000+ posts | former wiki editor | 332nd FPC | CoR founder
-ShadowOfTheFuture-
Scratcher
1000+ posts

HELP!

when gf clicked // in restart button
set [game over? v] to [0]
hide
wait until <(game over?) = [1]> // set "game over?" to 1 when you get a game over
show
...

<Insert uncreative signature here>









██       ██  ██            ██  ██       ██
██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██
██ ██ ██ ██ ██ ██ ██
███ ███ ██ ████ ██ ███ ███
█████████ █████ █████ █████████

“Though the seasons come and go, and sunshine turns to snow, we will always have tomorrow up ahead.”
Sssara445
New to Scratch
5 posts

HELP!

-Space_Cat- wrote:

If you share the project I will remix it on my test account @Test_N_Space and put in the script
Thanks! I have shared the project.

https://scratch.mit.edu/projects/245280781/

Last edited by Sssara445 (Nov. 11, 2018 22:53:18)

-Space_Cat-
Scratcher
18 posts

HELP!

I remixed it on @Test_N_Space

Powered by DjangoBB