Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » 'This sprite clicked' vs 'if: {[touching mouse] and [mouse down]}'
- sewesner
-
Scratcher
18 posts
'This sprite clicked' vs 'if: {[touching mouse] and [mouse down]}'
Greetings lads
So I use Scratch on both laptop and desktop and have noticed that doing this block;
I was wondering why this is as well as any ways to replicate ‘this sprite clicked’ for trackpad tapping detection.
I hope the code shows up properly, I'm on my phone rn. This is for all the students who want to silently play their clicker games while in class
So I use Scratch on both laptop and desktop and have noticed that doing this block;
when this sprite clickeddetects when I tap the trackpad of my laptop while doing this bit of code:
when green flag clickedonly detects if I press the trackpad down all the way.
forever
if <<touching [mousepointer] ?> and <mouse down?>> then
I was wondering why this is as well as any ways to replicate ‘this sprite clicked’ for trackpad tapping detection.
I hope the code shows up properly, I'm on my phone rn. This is for all the students who want to silently play their clicker games while in class
Last edited by sewesner (Aug. 22, 2025 15:40:00)
- MonkeyBean2
-
Scratcher
500+ posts
'This sprite clicked' vs 'if: {[touching mouse] and [mouse down]}'
This probably depends a lot on the OS and trackpad peripheral you are using
Last edited by MonkeyBean2 (Aug. 22, 2025 16:05:33)
- nembence
-
Scratcher
500+ posts
'This sprite clicked' vs 'if: {[touching mouse] and [mouse down]}'
When you tap the trackpad, it probably emits both a mousedown and a mouseup event in the same tick. This changes back the <mouse down?> block to false before the loop repeats, but it doesn't prevent the “when this sprite clicked” block from triggering
idk if that works on your laptop, but you might be able to change the <mouse down?> block to true by double-tapping, but the second tap is longer (as when dragging something)
idk if that works on your laptop, but you might be able to change the <mouse down?> block to true by double-tapping, but the second tap is longer (as when dragging something)
- Discussion Forums
- » Advanced Topics
-
» 'This sprite clicked' vs 'if: {[touching mouse] and [mouse down]}'


