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

#1 2007-12-22 15:44:56

dsdude10
Scratcher
Registered: 2007-09-22
Posts: 500+

Hidden sprite interaction

When a sprite is hidden using the
[blocks]<hide>[/blocks]
block, clicking where it is in the window will still execute the script.  Isn't a hidden object supposed to not interact with a mouse click?

Offline

 

#2 2007-12-23 01:10:59

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: Hidden sprite interaction

I made a simple program to test this:

when greenflag clicked
  hide

when sprite1 clicked
   show

So far as I can tell, in v1.2.1 the "when sprite1 clicked" hat does not start when the sprite is hidden.  That is the way we both believe it should be.  can you upload an example project where it is *not* behaving correctly?

(Of course, if you use "if mouse down" that doesn't care whether or not the sprite is hidden.)

Offline

 

Board footer