Discuss Scratch
- medians
-
Scratcher
1000+ posts
Mouse touching color?
No support. They could detect when you heart and starred, and make a project only playable if you get a certain amount of hearts and stars.Doesn't it turn red/yellow when you just hover over it though?
- overitbynow
-
New Scratcher
1 post
Mouse touching color?
that would be cool!
Last edited by overitbynow (July 20, 2023 07:54:59)
- wvzack
-
Scratcher
500+ posts
Mouse touching color?
just make boundaries to the canvasNo support. They could detect when you heart and starred, and make a project only playable if you get a certain amount of hearts and stars.Doesn't it turn red/yellow when you just hover over it though?
- medians
-
Scratcher
1000+ posts
Mouse touching color?
I don't even remember saying that, and that was a bamboozle too because the hovering thing was a 2.0 thing.just make boundaries to the canvasNo support. They could detect when you heart and starred, and make a project only playable if you get a certain amount of hearts and stars.Doesn't it turn red/yellow when you just hover over it though?
Also, I was referring to the “detecting when heart and starred” thing I think.
- antichemist
-
Scratcher
20 posts
Mouse touching color?
NEW HYPOTHESIS!
If you want to click something using a costume with a dot, make the dot slightly off-centered to allow space for the actual mouse pointer to click things OR use a
If you want to click something using a costume with a dot, make the dot slightly off-centered to allow space for the actual mouse pointer to click things OR use a
<mouse down?>boolean that detects clicks while touching another sprite.

Last edited by antichemist (Feb. 20, 2024 02:07:24)
- starlightsparker
-
Scratcher
1000+ posts
Mouse touching color?
Exactly. So I support this suggestion! This can be useful for some projects I had in mindThis doesn't work across all sprites unless you do this in that spriteUhh nothing to say about this…You can find a way around that.mouse touching color []? :: sensing boolean
First, make a sprite that is just a 1x1 black dot. Set the ghost effect to 99%, and tell it to always go to the mouse pointer. Then, just use that sprite for color detection.when green flag clickedwhich still isn't a perfect solution because you can't sense different colors
forever
set [mouse touching red v] to <touching color [#FF0000]> // of course "mouse touching red" is a global variable
end
if <(mouse touching red) = [true]> :: control //in another sprite
do this
endmouse touching color [#ff0000] :: sensing booleanwithout making a separate variable for each color
mouse touching color [#0000ff] :: sensing boolean
mouse touching color [#ff00ff] :: sensing boolean
Therefore, I give my support.
- Knightbot63
-
Scratcher
1000+ posts
Mouse touching color?
bump.
I'm giving a support. It's not worth wasting a sprite that goes to the mouse pointer and detecting from there. A simple boolean would be a bit better.
I'm giving a support. It's not worth wasting a sprite that goes to the mouse pointer and detecting from there. A simple boolean would be a bit better.






