Discuss Scratch

minecraftjulRBX
Scratcher
100 posts

Left Click? [SOLVED]

Is there a way to test which mouse button is being clicked?

Last edited by minecraftjulRBX (June 17, 2018 15:58:36)

VintageAura
Scratcher
100+ posts

Left Click? [SOLVED]

when this sprite clicked

<mouse down?>
ScratchDiogoh
Scratcher
1000+ posts

Left Click? [SOLVED]

???
minecraftjulRBX
Scratcher
100 posts

Left Click? [SOLVED]

VintageAura wrote:

when this sprite clicked

<mouse down?>
It doesn't work, and I also want it to test which one is being clicked.

Last edited by minecraftjulRBX (June 17, 2018 15:26:29)

ScratchDiogoh
Scratcher
1000+ posts

Left Click? [SOLVED]

minecraftjulRBX wrote:

VintageAura wrote:

when this sprite clicked

<mouse down?>
But what if I have to make it test which one is being clicked?
It is the left one, but if it has Scratch 1.4 it also gives the
Right with the Seginte Code:
when Stage clicked :: events hat
if <mouse down?> then
set [mouse v] to [left]
else
set [mouse v] to [right]
end
minecraftjulRBX
Scratcher
100 posts

Left Click? [SOLVED]

ScratchDiogoh wrote:

It is the left one, but if it has Scratch 1.4 it also gives the
Right with the Seginte Code:
when Stage clicked :: events hat
if <mouse down?> then
set [mouse v] to [left]
else
set [mouse v] to [right]
end
No, it's not detecting at all when you click the left button, & if you click the right it will change to left if it was already on right.
ScratchDiogoh
Scratcher
1000+ posts

Left Click? [SOLVED]

minecraftjulRBX wrote:

ScratchDiogoh wrote:

It is the left one, but if it has Scratch 1.4 it also gives the
Right with the Seginte Code:
when Stage clicked :: events hat
if <mouse down?> then
set [mouse v] to [left]
else
set [mouse v] to [right]
end
No, it's not detecting at all when you click the left button, & if you click the right it will change to left if it was already on right.
I never realized that
VintageAura
Scratcher
100+ posts

Left Click? [SOLVED]

it's probably some issue with the string/object in question. Can we have a link?
minecraftjulRBX
Scratcher
100 posts

Left Click? [SOLVED]

VintageAura wrote:

it's probably some issue with the string/object in question. Can we have a link?
Project Link
ScratchDiogoh
Scratcher
1000+ posts

Left Click? [SOLVED]

VintageAura wrote:

it's probably some issue with the string/object in question. Can we have a link?
?????
VintageAura
Scratcher
100+ posts

Left Click? [SOLVED]

when green flag clicked
forever
set [LeftClick? v] to [0]
if <mouse down?> then
set [LeftClick? v] to [1]
end
end
works perfectly fine…
minecraftjulRBX
Scratcher
100 posts

Left Click? [SOLVED]

VintageAura wrote:

when green flag clicked
forever
set [LeftClick? v] to [0]
if <mouse down?> then
set [LeftClick? v] to [1]
end
end
works perfectly fine…
I knew I was on to something with the forever before. Thanks for your help!

Powered by DjangoBB