Discuss Scratch

meepmep_
Scratcher
100+ posts

Hide = Un-interactable

I feel like when you hide a sprite it should be un-interactable. But when you click whatever trigger for a hidden sprite even if it's hidden it can still activate. like if clicking a button plays a sound, even if you click it while hidden it still plays.
GUYWHOLOVESCODE
Scratcher
500+ posts

Hide = Un-interactable

I'm not sure whether I'm supporting or not yet.
It has workarounds:
when this sprite clicked //Instead of this script
Your Script::Custom Blocks
when gf clicked //Try this one
forever{
wait until<mouse down?>
if <Touching[Mouse Pointer v]?> {
Your Script::Custom Blocks
}::control
}::control
The <Touching > block only checks this if both objects are showing.

Last edited by GUYWHOLOVESCODE (Feb. 16, 2023 13:54:34)

meepmep_
Scratcher
100+ posts

Hide = Un-interactable

GUYWHOLOVESCODE wrote:

I'm not sure whether I'm supporting or not yet.
It has workarounds:
when this sprite clicked //Instead of this script
Your Script::Custom Blocks
when gf clicked //Try this one
forever{
wait until<mouse down?>
if <Touching[Mouse Pointer v]?> {
Your Script::Custom Blocks
}::control
}::control
The <Touching > block only checks this if both objects are showing.
That wouldn't work. The hide block only makes things invisible. The “mouse touching” block would still read yes if it's over where the sprite is.
blablablahello
Scratcher
1000+ posts

Hide = Un-interactable

you cant click on hidden sprites : P
https://scratch.mit.edu/projects/772404928/
meepmep_
Scratcher
100+ posts

Hide = Un-interactable

blablablahello wrote:

you cant click on hidden sprites : P
https://scratch.mit.edu/projects/772404928/
guess not

Powered by DjangoBB