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

#1 2012-08-13 13:44:15

kairi_kh
New Scratcher
Registered: 2012-08-13
Posts: 1

Help with scoreboard numbers

Hello,
So I made a scoreboard for a game but I want to make it reach ten points then reset to zero points for a new game. How can I do this?
Help is much appreciated!

Offline

 

#2 2012-08-13 14:17:54

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Help with scoreboard numbers

when gf clicked
wait until <(score) = [10]>
set [score v] to (0)


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#3 2012-08-13 18:33:26

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Help with scoreboard numbers

Wes64 wrote:

when gf clicked
wait until <(score) = [10]>
set [score v] to (0)

That would only work once. I'll edit it quickly:

when gf clicked
forever
 if <not <(score) < (10)>>
  set [score v] to (0)
 end
Note: The <not <(score) < (10)>> can be swapped with <(score) = (10)>.

Last edited by ErnieParke (2012-10-25 15:19:47)


http://i46.tinypic.com/35ismmc.png

Offline

 

#4 2012-10-25 14:52:44

krzysiogawl01
Scratcher
Registered: 2012-05-02
Posts: 13

Re: Help with scoreboard numbers

When flag clicked
Forever if <<(Score) = (10)> or <(Score) > (10)>>
Set [score v] to (0)

Last edited by krzysiogawl01 (2012-10-25 14:54:22)


Don't know how to make a 0s1s stopwatch?
http://scratch.mit.edu/static/icons/buddy/1350608_med.png

Offline

 

Board footer