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

#1 2009-08-17 21:18:25

jstua23
Scratcher
Registered: 2009-08-16
Posts: 10

a count part

something that counts how many clicks have been made


Fox, Unit And Dc Own !!!!!!!!!!!!!!!!!!!!!!!!!

Offline

 

#2 2009-08-17 22:01:19

SmartIrishKid
Scratcher
Registered: 2008-07-19
Posts: 1000+

Re: a count part

Just create a variable called "ClickNum" and use the code:

Code:

when green flag clicked
set ClickNum to 0
forever if <mouse down?>
| change ClickNum by 1

Discuss future Scratch RPGs, online games, and more!

Offline

 

#3 2009-08-17 22:08:38

FantasyTales
Scratcher
Registered: 2008-06-02
Posts: 1000+

Re: a count part

no you have to change that so they cant cheat and just hold the mouse down it has to be different

Code:

 when green flag clicked
set ClickNum to 0
forever if <mouse down> 
I  change clickNum by 1
I  wait until not <mouse down>

http://ageofthefuture.ismywebsite.com/images/dg_sig_2_small.png
http://images.myadoptables.com/adopted/2340.pnghttp://images.myadoptables.com/adopted/2339.png

Offline

 

Board footer