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

#1 2009-01-31 11:44:35

trevifish
Scratcher
Registered: 2009-01-31
Posts: 2

Scoring Help

I am having trouble making a scoring thing for my game.  I have a variable called score but i dont know how to make it so when certain colors touch it goes up.  HELP PLZ.

Offline

 

#2 2009-01-31 12:06:47

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Scoring Help

Forever If Sprite <Touching> Color [ ] or Color [ ] ...
Change Score by 1

Offline

 

#3 2009-01-31 12:25:01

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Scoring Help

You might also want to wait until the color clears off the sprite before changing the score again or you find the score goes up really fast!  Maybe something like this...

[blocks]
<forever>
<if><< <touching color[ red <or> <touching color[ blue >>
<change{ score }by( 1
<end>
<wait until><<  <not>  << <touching color[ red <or> <touching color[ blue >> >>
<end>
[/blocks]


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2009-01-31 15:04:34

trevifish
Scratcher
Registered: 2009-01-31
Posts: 2

Re: Scoring Help

I tried putting in what you said but it still wont make the score go up... if u wanna look at the game i have it posted so you could try getting it to work.

Offline

 

Board footer