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.
Please help!!!
Last edited by ian528 (2011-01-22 11:36:09)
Offline
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.
Last edited by Harakou (2011-01-22 12:21:29)
Offline
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.
![]()
The Scratch team needs to fix that though.
Offline
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...
Offline
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