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

#1 2011-01-22 11:35:19

ian528
Scratcher
Registered: 2010-05-25
Posts: 500+

Problem with "hiding"

OK, so I made a button that plays a song when you click on it, but even when the button is "hidden", it still plays the song when you click there. I cannot seem to fix it.
Is it a glitch, or is there something wrong with my programming? I can post the project up if you need it, it's not finished though.
hmm  Please help!!!

Last edited by ian528 (2011-01-22 11:36:09)

Offline

 

#2 2011-01-22 12:15:50

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Problem with "hiding"

Hold on, let me check if it does it to me too...

Edit: It seems that the sprite will respond to a click while hidden if <touching mouse pointer and mouse down> is used, but not if the [When sprite clicked] hat block is used.  hmm

Last edited by Harakou (2011-01-22 12:21:29)


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#3 2011-01-22 13:52:05

ian528
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Problem with "hiding"

Thanks! When I use the hat block it works!

Harakou wrote:

Edit: It seems that the sprite will respond to a click while hidden if <touching mouse pointer and mouse down> is used, but not if the [When sprite clicked] hat block is used.  hmm

The Scratch team needs to fix that though.
hmm

Offline

 

#4 2011-01-22 14:54:26

TheSuccessor
Scratcher
Registered: 2010-04-23
Posts: 1000+

Re: Problem with "hiding"

I think it makes sense that the sprite can still detect if the mouse pointer is touching it even if it is hidden. What they really need is a <hidden?> block...


/* No comment */

Offline

 

#5 2011-01-22 14:58:06

ian528
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Problem with "hiding"

TheSuccessor wrote:

I think it makes sense that the sprite can still detect if the mouse pointer is touching it even if it is hidden. What they really need is a <hidden?> block...

Yes! That would make everything easier!

Offline

 

Board footer