Discuss Scratch

zenplasma
Scratcher
5 posts

How do you time a game?

I would like to put a count down in the game. How do I do that? Is it possible?
bloxxer
Scratcher
100+ posts

How do you time a game?

yes when the game started reset the timer and make the timer visible

EDIT: Sorry, i just read you wanted a “countdown”. If you want to countdown 5 secs then do like this:
forever
{
if timer = 5
{
stop this script
broadcast 5secsover
}
<the thing you want him to do withhin the 5 secs, if this is only a timer script leave this empty.>
}

Last edited by bloxxer (June 25, 2013 16:06:03)

Cookman
Scratcher
6 posts

How do you time a game?

You could also have a variable that is set to the correct number, for example, 10, and have a script that is like "When green flag clicked, forever change Timer(which is the variable) by -1, wait 1 second.
powerpoint56
Scratcher
1000+ posts

How do you time a game?

Here are a few scripts that can make countdowns: link.
gklenske
Scratcher
1 post

How do you time a game?

how do u make scratch games
powerpoint56
Scratcher
1000+ posts

How do you time a game?

gklenske wrote:

how do u make scratch games
If you would like help with something in particular, you can make your own topic in the Help with Scripts section and ask about that. If you need help getting started with Scratch and want to ask some questions, go here.
s9095251
New Scratcher
1 post

How do you time a game?

ARRRRRRRRRRR!!!!

Can anyone help me?

I'm trying to get a sprite to appear at the end of a countdown but nothing is happening!
jjjjjo
Scratcher
56 posts

How do you time a game?

s9095251 wrote:

ARRRRRRRRRRR!!!!

Can anyone help me?

I'm trying to get a sprite to appear at the end of a countdown but nothing is happening!

I think it would be like this:
Timer is a veriable

whenclicked
repeatuntilTimer=0changeTimerby-1
show

OR

whenclicked
repeatuntilTimer=0changeTimerby-1
broadcast timerend

Then on the sprite you want to show:

whenIreceivetimerend
show

That's how.

__________________

whenAwesomeness>9000
sayEVERYTHING IS AWESOME!

Last edited by jjjjjo (May 22, 2014 12:45:54)

Powered by DjangoBB