This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-02-20 08:47:16

Omartheman5
New Scratcher
Registered: 2012-02-20
Posts: 5

Game Over

Okay I'am making a game with a countdown and I want it that when the countdown is down to zero it says "Game Over" but I don't know how to do it please help.

Thank you for your time.

Offline

 

#2 2012-02-20 08:51:54

slinger
Scratcher
Registered: 2011-06-21
Posts: 1000+

Re: Game Over

when gf clicked //for if the timer is 0
reset timer
forever
if <(timer) = [0]>
  switch to costume [game over v]
else
 if <(I won)=[true]>
  switch to costume [You win! v]
  stop script
 end
end
end

Hope that helps  smile

Last edited by slinger (2012-02-20 09:00:11)


http://s0.bcbits.com/img/buttons/bandcamp_130x27_blue.png

Offline

 

#3 2012-02-20 09:04:53

Omartheman5
New Scratcher
Registered: 2012-02-20
Posts: 5

Re: Game Over

where did you get that thing

switch to costume [game over]

Offline

 

#4 2012-02-20 09:08:08

legoscratch
Scratcher
Registered: 2010-06-18
Posts: 100+

Re: Game Over

Omartheman5 wrote:

where did you get that thing

switch to costume [game over v]

It's in the looks section.  Or, if you're using the Stage, it looks like

switch to background [game over v]


If you are having trouble with simple counting, use the following mnemonic device: 1 comes before 2 comes before 5,280 comes before 523,860,759 comes after the square root of -153 comes before π. This will make your previous counting problems seem like no big deal.

Offline

 

#5 2012-02-20 09:24:07

Omartheman5
New Scratcher
Registered: 2012-02-20
Posts: 5

Re: Game Over

while I am playing the game the background changes to Game Over and the timer didn't finish its still 57.
Please Help

Offline

 

Board footer