Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How can I make a GameOver screen
- ihoptdk
-
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
-
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
Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that
Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.
Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @straightforwardness @interchangeably
i trolled redcat LOL
if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
![](https://u.cubeupload.com/medians/YeaButImPlaying.png)
;
- ihoptdk
-
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
-
1000+ posts
How can I make a GameOver screen
You could just display the variable monitor, or use a Sprite with a text engine to display it. 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 bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that
Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.
Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @straightforwardness @interchangeably
i trolled redcat LOL
if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
![](https://u.cubeupload.com/medians/YeaButImPlaying.png)
;
- someone_random58
-
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!![](//cdn.scratch.mit.edu/scratchr2/static/__cc9ae46d6f18dbb9e77f0ca29dcffc7c__/djangobb_forum/img/smilies/smile.png)
Step 2: The code
You gotta use this code below:
Step 3: ENJOY![](//cdn.scratch.mit.edu/scratchr2/static/__cc9ae46d6f18dbb9e77f0ca29dcffc7c__/djangobb_forum/img/smilies/big_smile.png)
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!
![](http://cdn.scratch.mit.edu/scratchr2/static/__cc9ae46d6f18dbb9e77f0ca29dcffc7c__/djangobb_forum/img/smilies/smile.png)
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
![](http://cdn.scratch.mit.edu/scratchr2/static/__cc9ae46d6f18dbb9e77f0ca29dcffc7c__/djangobb_forum/img/smilies/big_smile.png)
byeeeeeee
Last edited by someone_random58 (Feb. 25, 2023 02:53:13)
What's New?
A Scratch Team member told that there is enough guides in the Scratch Forums. Avoid doing guides on Scratch ForumsCheck out these links!
MY SHOP! (BETA)
Give an InternetMy ALT account: @that_algerian_oneLinks
Combine Emojis Here
Look at Countryballs Things Here
Design a Flag Here (Must support SVG in HTML5 if you want to export your flag to SVG!)
Make Crazy Emojis Here
Play Roblox HereGet to know about me!
Name: Yahia Benotmane (Just like the prophet Yahia in Islam)
Favorite color=Azure Blue
Nationality=AlgeriaMy Kumquat protectionswhen green flag clickedMy pet, Cocki. He verifies for Kumquats.
if <kumquat virus found> then
DELETE KUMQUAT WITH [UNIVERSE v]
DELETE KUMQUAT WITH [EVERYTHING v]
DELETE KUMQUAT WITH [MULTIVERSE v]
DELETE KUMQUAT WITH [RUSSIAN-NORTH KOREAN ARMY v]
DELETE KUMQUAT WITH [AMOGUS v]:| [no more evil kumquats v]
- Parvez263
-
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
-
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
-
36 posts
How can I make a GameOver screen
Forum Hijacker 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..
Hi. I'm xXKaptianXx, you can call me Kaptain, Kap, or anything else that I say is my name.
I'm just a kid that likes to make games. Code to dispel the Kumquat:
when green flag clicked
forever
if <(Kumquat) = (Near ::motion)> then
Run
end
end
- Discussion Forums
- » Help with Scripts
-
» How can I make a GameOver screen