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

#1 2012-07-05 12:59:37

i_wills_blabla
New Scratcher
Registered: 2012-07-05
Posts: 11

how to keep a score on scratch

hey i need to know how to keep a score on scratch, when u click on an item u earn 1 point but if u click on a different item u will lose 5 points, if u get to 0 points u lose and if u get to 20 points u win, thanks please help

Offline

 

#2 2012-07-05 13:17:26

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: how to keep a score on scratch

when [scoringsprite] clicked
change [score v] by (1)
end
when [losing sprite] clicked
change [score v]by (-5)
end
when gf clicked
forever
if <(score) < (1)>
broadcast [game over v]
And make whatever you want your game to do do it after it receives "game over"


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#3 2012-07-05 13:24:03

i_wills_blabla
New Scratcher
Registered: 2012-07-05
Posts: 11

Re: how to keep a score on scratch

thanks that was really helpful!

Offline

 

Board footer