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

#1 2012-11-02 03:29:08

peguerosdc
New Scratcher
Registered: 2012-11-02
Posts: 1

Sensor if the mouse was already clicked

Hi  big_smile  I have a zombie game ( http://scratch.mit.edu/projects/peguerosdc/2849021 ) but it has a bug  hmm  it is supposed that when you click a zombie it is shot and it dissappears, but the thing is that if you hold your mouse clicked and just touch all the zombies the program thinks they were shot, so I don't know how to sense something like this:

If the mouse is not already clicked and it's touching the zombie
     if the mouse is clicked after it was not already clicked and it's touching the zombie
         do bla bla bla
else
    bla bla bla

Somebody has any idea?? D:

Offline

 

#2 2012-11-02 03:46:49

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Sensor if the mouse was already clicked

you can use

wait until <not<mouse down?>>

Last edited by TRocket (2012-11-02 03:47:03)


http://i.imgur.com/1QqnHxQ.png

Offline

 

Board footer