tobbess wrote:
I've made this game called Point Hunting (I've posted it on the website) and I'd like to get to know how to make score and time limit.
You could do something like:
[blocks]
<when green flag clicked>
<forever if> <( <{ Score }> <>> 10 )>
<set{ Score }to( 10
<end>
[/blocks]
You can change the number 10 to whatever you want!
EDIT: Oh yeah, this was only the score limit. For the time limit try mr_fish_fish's idea below!
Last edited by Purika (2012-02-05 08:03:33)
Offline
For the time limit, Scratch has included a nice timer tool. This could be used for your project:
when gf clicked reset timer wait until <(timer) > [your number]> broadcast [gameover v]This would reset the timer, and then broadcast the game over message after the timer has reached the time limit.
Last edited by mr_fish_fish (2012-02-04 22:35:20)
Offline
Purika wrote:
tobbess wrote:
I've made this game called Point Hunting (I've posted it on the website) and I'd like to get to know how to make score and time limit.
You could do something like:
[blocks]
<when green flag clicked>
<forever if> <( <{ Score }> <>> 10 )>
<set{ Score }to( 10
<end>
[/blocks]
You can change the number 10 to whatever you want!![]()
EDIT: Oh yeah, this was only the score limit. For the time limit try mr_fish_fish's idea below!![]()
exactly like that
Offline