Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Cursor Shake Detection
- GlitchyZorua
-
Scratcher
100+ posts
Cursor Shake Detection
Heyo! I'm trying to make a shake cursor detection, but it doesn't seem to work as well as I thought it would
Any Better alternatives?
Here is my code.

Any Better alternatives?
Here is my code.

- Alex_Ilya
-
Scratcher
1000+ posts
Cursor Shake Detection
Mouse movement detection. But this script reacts to mouse movement with a delay.
when green flag clicked
forever
set [MouseX v] to (mouse x)
set [MouseY v] to (mouse y)
wait (0.2) secs
if <<not <(MouseX) = (mouse x)>> and <not <(MouseY) = (mouse y)>>> then
say [Move!]
else
say []
end
end
- Hollowness
-
Scratcher
55 posts
Cursor Shake Detection
when green flag clicked
forever
set [mouse.xy] to (join(mouse x)(mouse y))
wait (0) secs
if <(mouse.xy) = (join(mouse x)(mouse y))> then
say [Mouse is stable]
else
say [Mouse is moving]
end
- GlitchyZorua
-
Scratcher
100+ posts
Cursor Shake Detection
Here is what I got

It works, but it's too sensitive.
Here is my updated code


It works, but it's too sensitive.
Here is my updated code

- Discussion Forums
- » Help with Scripts
-
» Cursor Shake Detection