Discuss Scratch

MinciHusky
Scratcher
3 posts

Auto clicker detection

Does anyone know any kind of script that detects if you're using an auto clicker? I'm making a clicker game, and I don't really want anyone to use an auto clicker because I'm trying to make it as rewarding as possible.
Invalid_text
Scratcher
100+ posts

Auto clicker detection

maybe if they're clicking too fast?
Mr_Woomy
Scratcher
500+ posts

Auto clicker detection

MinciHusky wrote:

Does anyone know any kind of script that detects if you're using an auto clicker? I'm making a clicker game, and I don't really want anyone to use an auto clicker because I'm trying to make it as rewarding as possible.
id make a script like
when (FLAG) pressed:
forever
if (mouse down?) & timer < 0.1
set timer to 0.2
else
(your anti-clicker code here)

then on another forever loop
change timer by -0.1

tbh it would make the game just drone on for a while if this is added but oh well
MinciHusky
Scratcher
3 posts

Auto clicker detection

ah thanks, ill see if that works. i know it would be a bit controversial for a clicker game, but again im trying to make it rewarding
wvzack
Scratcher
500+ posts

Auto clicker detection

I would make a script like this
defineantiautoclickiftimerisequaltoalmostthesamethingaslasttimethenstopall

whenthisspriteclickedantiautoclicktimerresettimer
MinciHusky
Scratcher
3 posts

Auto clicker detection

How would I exactly do the “timer is equal to almost the same thing as last time” block?
Woodfur
Scratcher
100+ posts

Auto clicker detection

I wouldn't just compare it to the last click since a human could easily do that by accident. If enough clicks in a row are consistent, that's probably a bot. Of course bots can switch up their clicking rate pretty much as often as the creator wants, but we won't worry about that.

whenthisspriteclickedsettimertotimerresettimerreset asap for best accuracyifabsofclickinterval-timer<.005thenchangesame clicksby1ifsameclicks>9thenstopallelsesetsame clicksto0

Last edited by Woodfur (July 18, 2023 04:56:54)

mr-hi-hello
Scratcher
1 post

Auto clicker detection

wvzack wrote:

I would make a script like this
defineantiautoclickiftimerisequaltoalmostthesamethingaslasttimethenstopall

whenthisspriteclickedantiautoclicktimerresettimer
how do you get the red blocks
Malicondi
Scratcher
1000+ posts

Auto clicker detection

mr-hi-hello wrote:

wvzack wrote:

I would make a script like this
defineantiautoclickiftimerisequaltoalmostthesamethingaslasttimethenstopall

whenthisspriteclickedantiautoclicktimerresettimer
how do you get the red blocks
You can't, red blocks using [scratchblocks are just blocks that don't actually exist in scratch

Last edited by Malicondi (Jan. 29, 2024 21:20:06)

Powered by DjangoBB