Discuss Scratch

12424
Scratcher
65 posts

How do I get game over on my game?

I think you should do this one:

forever

if <<(lives) < [0]> or <(lives) = [0]>> then
hide
broadcast [game over v] and wait
else
show
end

end

// I hope it helps
pac-man9000
Scratcher
25 posts

How do I get game over on my game?

I'm making a game where if you touch a ball you get game over and the project stops. Please Please PLEASE tell me how to do that! Thank You.
izabeladarshantwin
Scratcher
19 posts

How do I get game over on my game?

when green flag clicked
if <touching [ball v] ?> then

hide
broadcast [game over v]
end
MMHMMH
Scratcher
100+ posts

How do I get game over on my game?

13NGUYENT wrote:

NEED HELP! I am making this game in which you have to pop the ballons in a certain amount of time. I am not quite sure how to end the game if the player doesnt pop all the ballons. Please help!!
when I receive [game over v]
if <(balloons popped) = [number of balloons ]> then //number of balloons is the number of balloons in all.
broadcast [you win v]
else
broadcast [you lose v] //it doesn't have to be broadcasted, it can be said, thought, etc.
end
MMHMMH
Scratcher
100+ posts

How do I get game over on my game?

izabeladarshantwin wrote:

when green flag clicked
if <touching [ball v] ?> then

hide
broadcast [game over v]
end
You might want to also add
stop [all v]
under that.
izabeladarshantwin
Scratcher
19 posts

How do I get game over on my game?

when green flag clicked
if <<(life) < [0 ]> or <<(life) = [0]> >> then
broadcast [game over v]
end

when I receive [game over v]
stop [all v]
or
switch costume to [ v]
or
switch backdrop to [ v]
TheAmazingJorge246
Scratcher
42 posts

How do I get game over on my game?

when clickedreset timer. . .foreverif timer > 60 thenor whatever time you allow to playsay Game Overstop
izabeladarshantwin
Scratcher
19 posts

How do I get game over on my game?

when green flag clicked
set [timer v] to [20]
repeat (20)
change [timer v] by (-1)
end



when green flag clicked
forever

if <(Timer) = [0]> then
broadcast [game over v]
end






when I receive [game over v]
stop [all v]

Last edited by izabeladarshantwin (July 23, 2015 17:48:49)

izabeladarshantwin
Scratcher
19 posts

How do I get game over on my game?

some thing went wrong with Timer and I don't know why its blue!
supersmashbros123
Scratcher
10 posts

How do I get game over on my game?

help i did it correctly but it is not workinghttps://scratch.mit.edu/projects/72262526/
gamebeater187
Scratcher
1000+ posts

How do I get game over on my game?

when green flag clicked
forever if <[lives] = [0]>

broadcast [game over]
end


when I receive [game over]
say [Gameover!!!] for (2) secs
stop [all]

Powered by DjangoBB