Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How can I make a GameOver screen
- ihoptdk
-
New Scratcher
3 posts
How can I make a GameOver screen
I’m trying to make a game over screen that displays a very large Game Over using a backdrop. I would like to add a line “Score:” with a score variable.
- medians
-
Scratcher
1000+ posts
How can I make a GameOver screen
You could hide the other sprites when receiving the game over, or instead use a sprite and..
when green flag clicked
hide
go to front
when I receive [game over v]
show
- ihoptdk
-
New Scratcher
3 posts
How can I make a GameOver screen
I can show a Game Over on a back drop by adding text in its costume page. Is it possible to add a variable in that text?
- medians
-
Scratcher
1000+ posts
How can I make a GameOver screen
I can show a Game Over on a back drop by adding text in its costume page. Is it possible to add a variable in that text?You could just display the variable monitor, or use a Sprite with a text engine to display it.
- someone_random58
-
Scratcher
82 posts
How can I make a GameOver screen
You could make a new sprite, and you will name it ‘'Game Over Screen’'
Step 1: The Sprite
cover the space with black and add a message that says ‘'Game over Click green flag to try again’'
Aaaand you are done!
Step 2: The code
You gotta use this code below:
Step 3: ENJOY
Step 1: The Sprite
cover the space with black and add a message that says ‘'Game over Click green flag to try again’'
Aaaand you are done!

Step 2: The code
You gotta use this code below:
when green flag clicked
hide
go to front
when I receive [game over message when the player dies v]If you want, you can add a sound when the player dies. To do this, simply edit the code below
show
when I receive [game over message when the player dies v]To make it be into this
show
when I receive [game over message when the player dies v]
show
play sound [whatever sound you want v]
Step 3: ENJOY

byeeeeeee
Last edited by someone_random58 (Feb. 25, 2023 02:53:13)
- Parvez263
-
New Scratcher
4 posts
How can I make a GameOver screen
Hi, I'm creating a 2 Player Game, in which I'm broadcasting two separate messages if either of the Players win.
Upon receiving either of these messages, I wish to display the Players Name on the screen which is stored in a list. I'm not sure how to do that.
Please help..
Upon receiving either of these messages, I wish to display the Players Name on the screen which is stored in a list. I'm not sure how to do that.
Please help..
- ChampKeeve
-
Scratcher
7 posts
How can I make a GameOver screen
Step 1: Code the basics
Step 2: Add an cool swift effect
Step 3: ENJOY!
when I receive [GAME OVER!]
show
stop
go to x: (0) y: (0)
wait until <mouse down?>
broadcast [restart]
hide
define stop
move by ((x position) / (y position))
stop [all scripts in other sprites]
define move by (input)
forever
change x by ([sin] of (input))
change y by ([cos] of (input))
Step 2: Add an cool swift effect
when green flag clicked
go to x: (0) y: (240)
when I receive [GAME OVER!]
repeat (24)
change y by (-10)
end
show
stop
go to x: (0) y: (0)
wait until <mouse down?>
broadcast [restart]
hide
define stop
move by ((x position) / (y position))
stop [all scripts in other sprites]
define move by (input)
forever
change x by ([sin] of (input))
change y by ([cos] of (input))
Step 3: ENJOY!
ENJOY!:D:D
Last edited by ChampKeeve (Feb. 25, 2023 09:08:57)
- xXKaptainXx
-
Scratcher
100+ posts
How can I make a GameOver screen
Hi, I'm creating a 2 Player Game, in which I'm broadcasting two separate messages if either of the Players win.Forum Hijacker
Upon receiving either of these messages, I wish to display the Players Name on the screen which is stored in a list. I'm not sure how to do that.
Please help..
- Discussion Forums
- » Help with Scripts
-
» How can I make a GameOver screen




