Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do you time a game?
- zenplasma
-
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
-
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.>
}
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
-
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
-
1000+ posts
How do you time a game?
Here are a few scripts that can make countdowns: link. 

- powerpoint56
-
1000+ posts
How do you time a game?
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 how do u make scratch gameshere.

- s9095251
-
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!
Can anyone help me?
I'm trying to get a sprite to appear at the end of a countdown but nothing is happening!
- jjjjjo
-
56 posts
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!
I think it would be like this:
Timer is a veriable
OR
Then on the sprite you want to show:
That's how.
__________________
Last edited by jjjjjo (May 22, 2014 12:45:54)
- Discussion Forums
- » Help with Scripts
-
» How do you time a game?