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

#1 2012-01-18 06:03:27

tobbess
New Scratcher
Registered: 2012-01-18
Posts: 1

Time And Score limit

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.

Offline

 

#2 2012-01-18 08:55:10

Purika
Scratcher
Registered: 2011-01-26
Posts: 100+

Re: Time And Score limit

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!  smile

EDIT: Oh yeah, this was only the score limit. For the time limit try mr_fish_fish's idea below!  smile

Last edited by Purika (2012-02-05 08:03:33)


https://lh3.googleusercontent.com/-ZlPXbnYAtro/TxRNNopA6XI/AAAAAAAAAvY/worvlbyfCYI/s589/Purika.gif
If I was three birds, I could see myself fly below us!  big_smile

Offline

 

#3 2012-02-04 22:34:53

mr_fish_fish
Scratcher
Registered: 2009-11-12
Posts: 52

Re: Time And Score limit

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.

Hope this helps!

Last edited by mr_fish_fish (2012-02-04 22:35:20)


/\/\ ® _ |= 1 § |-| _ |= 1 § |-|

Offline

 

#4 2012-02-05 20:02:21

K-Jam
Scratcher
Registered: 2010-04-17
Posts: 100+

Re: Time And Score limit

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!  smile

EDIT: Oh yeah, this was only the score limit. For the time limit try mr_fish_fish's idea below!  smile

exactly like that


http://images.inmagine.com/img/imagezoo/iz162/Iz162012.jpg COMPASS!!!

Offline

 

Board footer