Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » [READ OP] how to detect if a mouse pointer is touching a color
- gdfsgdfsgdfg
-
Scratcher
1000+ posts
[READ OP] how to detect if a mouse pointer is touching a color
READ THE OP BEFORE POSTING
I don’t want to use fake mouse pointers as it just breaks the functionality of a real
mouse pointer
I don’t want to use fake mouse pointers as it just breaks the functionality of a real
mouse pointer
Last edited by gdfsgdfsgdfg (Oct. 25, 2023 17:48:16)
- -gr
-
Scratcher
1000+ posts
[READ OP] how to detect if a mouse pointer is touching a color
Make a 2x2 sprite that is always going to the mouse pointer, then check if that's touching the color.
- gdfsgdfsgdfg
-
Scratcher
1000+ posts
[READ OP] how to detect if a mouse pointer is touching a color
Make a 2x2 sprite that is always going to the mouse pointer, then check if that's touching the color.read OP it states that I don’t want to use a fake mouse pointer it
breaks the functionality of the mouse click
also it doesn’t work all of the time
Last edited by gdfsgdfsgdfg (Oct. 25, 2023 16:10:20)
- gdfsgdfsgdfg
-
Scratcher
1000+ posts
[READ OP] how to detect if a mouse pointer is touching a color
Why don't you want to use it?bruh its not related to the question
- amogus1123
-
Scratcher
500+ posts
[READ OP] how to detect if a mouse pointer is touching a color
I don’t want to use fake mouse pointers as it just breaks the functionality of a realhttps://scratch.mit.edu/projects/913934204/
mouse pointer
I just made a fake mousepointer but hid it
- gdfsgdfsgdfg
-
Scratcher
1000+ posts
[READ OP] how to detect if a mouse pointer is touching a color
https://scratch.mit.edu/projects/913934204/Bro read OP
I just made a fake mousepointer but hid it
also that doesn’t work as its hidden
and
<color [#5aca56] is touching [#a03dae] ?>won’t detect that
- amogus1123
-
Scratcher
500+ posts
[READ OP] how to detect if a mouse pointer is touching a color
well……….. it doeshttps://scratch.mit.edu/projects/913934204/Bro read OP
I just made a fake mousepointer but hid it
also that doesn’t work as its hidden
and<color [#5aca56] is touching [#a03dae] ?>won’t detect that
well that means they is no way to do your question, should be a suggestion…
Last edited by amogus1123 (Oct. 25, 2023 17:56:53)
- CAPoftruth-alt
-
Scratcher
100+ posts
[READ OP] how to detect if a mouse pointer is touching a color
If that's then you could usehttps://scratch.mit.edu/projects/913934204/Bro read OP
I just made a fake mousepointer but hid it
also that doesn’t work as its hidden
and<color [#5aca56] is touching [#a03dae] ?>won’t detect that
set [ghost v] effect to (100)instead. As far as I know, there isn't any other way to do so.
- ajskateboarder
-
Scratcher
1000+ posts
[READ OP] how to detect if a mouse pointer is touching a color
I don’t want to use fake mouse pointers as it just breaks the functionality of a realThis doesn't make sense – the demo amogus1123 linked works perfectly fine with a "set [ghost v] effect to (100)"
mouse pointer
- gdfsgdfsgdfg
-
Scratcher
1000+ posts
[READ OP] how to detect if a mouse pointer is touching a color
This doesn't make sense – the demo amogus1123 linked works perfectly fine with a "set [ghost v] effect to (100)"I tried doing that
it didn’t detect
- -Valtren-
-
Scratcher
1000+ posts
[READ OP] how to detect if a mouse pointer is touching a color
Try 99 percent, that always works for me.This doesn't make sense – the demo amogus1123 linked works perfectly fine with a "set [ghost v] effect to (100)"I tried doing that
it didn’t detect
- mybearworld
-
Scratcher
1000+ posts
[READ OP] how to detect if a mouse pointer is touching a color
Make an sprite that's just a single pixel, hide it via the ghost effect, and make it detect the color:
(Also, this should probably be in HwS)
when gf clickedDemo
forever
go to [mouse-pointer v]
set [ghost v] effect to (100)
set [mouse cursor touching green v] to <touching color [#00ff38]?>
end
(Also, this should probably be in HwS)
- Discussion Forums
- » Questions about Scratch
-
» [READ OP] how to detect if a mouse pointer is touching a color