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

#1 2012-03-02 12:18:14

wjack2010
Scratcher
Registered: 2010-06-28
Posts: 100+

Make it show number of clicks

I'm stuck on this one, when the player clicks on X colour, the counter should increase by 1 each time how can I do this?

Offline

 

#2 2012-03-02 12:25:53

schusteralex2
Scratcher
Registered: 2011-09-17
Posts: 1000+

Re: Make it show number of clicks

Try this: make each color a sprite and make a variable called count, than put this script on each sprite
When sprite x clicked
increase count by 1


http://i44.tinypic.com/2uj37ds.gif

Offline

 

#3 2012-03-02 12:32:22

wjack2010
Scratcher
Registered: 2010-06-28
Posts: 100+

Re: Make it show number of clicks

schusteralex2 wrote:

Try this: make each color a sprite and make a variable called count, than put this script on each sprite
When sprite x clicked
increase count by 1

How do I do the increase bit?

Offline

 

#4 2012-03-02 12:38:38

schusteralex2
Scratcher
Registered: 2011-09-17
Posts: 1000+

Re: Make it show number of clicks

In the variable menu use the: change Count by __ block


http://i44.tinypic.com/2uj37ds.gif

Offline

 

#5 2012-03-02 12:41:28

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Make it show number of clicks

when gf clicked
set [Count v] to [0]
when [Sprite1] clicked
change [Count v] by [1]

Last edited by RedRocker227 (2012-03-02 12:41:39)


Why

Offline

 

#6 2012-03-02 12:43:52

schusteralex2
Scratcher
Registered: 2011-09-17
Posts: 1000+

Re: Make it show number of clicks

RedRocker227 wrote:

when gf clicked
set [Count v] to [0]
when [Sprite1] clicked
change [Count v] by [1]

Yep, I stink at scratchblocks so I didn't even try  tongue


http://i44.tinypic.com/2uj37ds.gif

Offline

 

#7 2012-03-02 12:45:14

wjack2010
Scratcher
Registered: 2010-06-28
Posts: 100+

Re: Make it show number of clicks

RedRocker227 wrote:

when gf clicked
set [Count v] to [0]
when [Sprite1] clicked
change [Count v] by [1]

Thank you.  smile

Offline

 

Board footer