Discuss Scratch

JAVAProgramming
Scratcher
100+ posts

Click Detector

I need to make a detector for both a right click and a left click. Is there any way to differentiate the two different clicks?
scubajerry
Scratcher
1000+ posts

Click Detector

I assume you are talking about mouse buttons. On my PC, it appears that Scratch doesn't detect right mouse buttons.
JAVAProgramming
Scratcher
100+ posts

Click Detector

scubajerry wrote:

I assume you are talking about mouse buttons. On my PC, it appears that Scratch doesn't detect right mouse buttons.
So there is no way to do that?
mitchboy
Scratcher
1000+ posts

Click Detector

Not until Scratch adds in a right-click button under <key [] pressed?>
ProdigyZeta7
Scratcher
1000+ posts

Click Detector

If you have 1.4, you can make a script that tricks Scratch into detecting right-clicks:
whenthisspriteclickedifmousedown?left-clickscriptelseright-clickscript
But otherwise, there is no way to detect right-clicks in 2.0.

Last edited by ProdigyZeta7 (Aug. 30, 2013 22:29:55)

JAVAProgramming
Scratcher
100+ posts

Click Detector

ProdigyZeta7 wrote:

If you have 1.4, you can make a script that tricks Scratch into detecting right-clicks:

when this sprite clicked
if <mouse down?>
left-click script
else
right-click script

But otherwise, there is no way to detect right-clicks in 2.0.
OK, thanks!
curiouscrab
Scratcher
500+ posts

Click Detector

ProdigyZeta7 wrote:

If you have 1.4, you can make a script that tricks Scratch into detecting right-clicks:
whenthisspriteclickedifmousedown?left-clickscriptelseright-clickscript
But otherwise, there is no way to detect right-clicks in 2.0.
It only works in 1.4 offline though.
awesomeness01
Scratcher
97 posts

Click Detector

there may be a way to do it from hacking the JSON part…
777atscratch
Scratcher
100+ posts

Click Detector

See Here. It is 1s1s.
awesomeness01
Scratcher
97 posts

Click Detector

777atscratch wrote:

See Here. It is 1s1s.
Project is not shared.
Paddle2See
Scratch Team
1000+ posts

Click Detector

Since this topic hasn't seen a new post from the topic owner in a long time, I'm going to assume that it is dead and close the topic. If it still is alive, the topic owner just needs to use the Report button to ask a mod to reopen it

Powered by DjangoBB