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
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.
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)

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

How can I make a GameOver screen

game over

Powered by DjangoBB