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

#1 2011-12-25 13:37:21

soniku3
Scratcher
Registered: 2011-12-08
Posts: 1000+

A ''when click ( ) times on sprite'' block!

In scratch 2.0 must be a ''when click ( ) times on sprite"block!
Because thats really needed!


internet's all about cats today.

Offline

 

#2 2011-12-25 13:49:47

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: A ''when click ( ) times on sprite'' block!

So like a wait for click () time on sprite?
You can actually do that.

When sprite clicked:
change variable "numberclicked" by +1

(different script)
wait for <"numberclicked"=(however many times)>


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#3 2011-12-25 13:59:46

soniku3
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: A ''when click ( ) times on sprite'' block!

Oké i did not see that!


internet's all about cats today.

Offline

 

#4 2011-12-25 14:01:57

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

Re: A ''when click ( ) times on sprite'' block!

This can be done by putting this:

When [Sprite] clicked
Change 'Variable' by '1'

And then on another scripts:

When green flag clicked
Wait until  'Variable=[number]'
[Rest of script]

I hope this helps!  smile


Why

Offline

 

#5 2011-12-25 14:21:37

soniku3
Scratcher
Registered: 2011-12-08
Posts: 1000+

Re: A ''when click ( ) times on sprite'' block!

Thanks!


internet's all about cats today.

Offline

 

Board footer