Discuss Scratch

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

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
Describe favorite topics: https://scratch.mit.edu/studios/35764610/
SP community won against Fandom :P
Years on internet: 16 (very close to 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

;
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

ihoptdk wrote:

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.

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
Describe favorite topics: https://scratch.mit.edu/studios/35764610/
SP community won against Fandom :P
Years on internet: 16 (very close to 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

;
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:
when green flag clicked
hide
go to front
when I receive [game over message when the player dies v]
show
If you want, you can add a sound when the player dies. To do this, simply edit the code below
when I receive [game over message when the player dies v]
show
To make it be into this
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)


What's New?
A Scratch Team member told that there is enough guides in the Scratch Forums. Avoid doing guides on Scratch Forums
Check out these links!
MY SHOP! (BETA)
Give an Internet
My ALT account: @that_algerian_one
Links
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 Here

Get to know about me!
Name: Yahia Benotmane (Just like the prophet Yahia in Islam)
Favorite color=Azure Blue
Nationality=Algeria

My Kumquat protections
when green flag clicked
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]
My pet, Cocki. He verifies for Kumquats.
:| [no more evil kumquats v]
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..
ChampKeeve
Scratcher
7 posts

How can I make a GameOver screen

Step 1: Code the basics

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
36 posts

How can I make a GameOver screen

Parvez263 wrote:

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..
Forum Hijacker

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
Makersbox
Scratcher
1 post

How can I make a GameOver screen

game over

Powered by DjangoBB