Discuss Scratch

medians
Scratcher
1000+ posts

Mouse touching color?

astro_code1 wrote:

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)

HedwigsHat
Scratcher
1000+ posts

Mouse touching color?

bump
wvzack
Scratcher
500+ posts

Mouse touching color?

medians wrote:

astro_code1 wrote:

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?
just make boundaries to the canvas
medians
Scratcher
1000+ posts

Mouse touching color?

wvzack wrote:

medians wrote:

astro_code1 wrote:

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?
just make boundaries to the canvas
I don't even remember saying that, and that was a bamboozle too because the hovering thing was a 2.0 thing.
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
<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?

kenny2scratch wrote:

terminator68 wrote:

EvilCookie36 wrote:

Uhh nothing to say about this…
mouse touching color []? :: sensing boolean
You can find a way around that.

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.
This doesn't work across all sprites unless you do this in that sprite
when green flag clicked
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
end
which still isn't a perfect solution because you can't sense different colors
mouse touching color [#ff0000] :: sensing boolean
mouse touching color [#0000ff] :: sensing boolean
mouse touching color [#ff00ff] :: sensing boolean
without making a separate variable for each color

Therefore, I give my support.
Exactly. So I support this suggestion! This can be useful for some projects I had in mind
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.
medians
Scratcher
1000+ posts

Mouse touching color?

Bringing this topic up.

Powered by DjangoBB