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

#1 2011-02-27 08:32:30

Qaze
Scratcher
Registered: 2010-10-02
Posts: 56

When hidden...

I have something that says "if touching mouse pointer" do something. Then when it's hidden, it still does the thing if the mouse is at the place. Is there a way to stop that from happening?


http://i.imgur.com/2i8VY.gif

Offline

 

#2 2011-02-27 08:35:24

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: When hidden...

Make a variable called "hidden?" first.

Whenever you have a hide block in your scripts, put a "set hidden? to 1" right above it.  Whenever you have a show block, put a "set hidden? to 0"

Make your if into "if <touching mouse pointer> and <hidden?=0>" and it should run fine.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2011-02-27 08:36:18

-iNetMaster-
Scratcher
Registered: 2010-08-30
Posts: 1000+

Re: When hidden...

So far I haven't figured out how to fix this, but I'm sure someone will figure it out  smile

EDI: Looks like Kiley did.

Last edited by -iNetMaster- (2011-02-27 08:37:59)

Offline

 

Board footer