Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Left Click? [SOLVED]
- 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)
- minecraftjulRBX
-
Scratcher
100 posts
Left Click? [SOLVED]
It doesn't work, and I also want it to test which one is being clicked.when this sprite clicked
<mouse down?>
Last edited by minecraftjulRBX (June 17, 2018 15:26:29)
- ScratchDiogoh
-
Scratcher
1000+ posts
Left Click? [SOLVED]
It is the left one, but if it has Scratch 1.4 it also gives theBut what if I have to make it test which one is being clicked?when this sprite clicked
<mouse down?>
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]
It is the left one, but if it has Scratch 1.4 it also gives theNo, 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.
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
- ScratchDiogoh
-
Scratcher
1000+ posts
Left Click? [SOLVED]
I never realized thatIt is the left one, but if it has Scratch 1.4 it also gives theNo, 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.
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

- 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]
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]
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 clickedworks perfectly fine…
forever
set [LeftClick? v] to [0]
if <mouse down?> then
set [LeftClick? v] to [1]
end
end
- minecraftjulRBX
-
Scratcher
100 posts
Left Click? [SOLVED]
I knew I was on to something with the forever before. Thanks for your help!when green flag clickedworks perfectly fine…
forever
set [LeftClick? v] to [0]
if <mouse down?> then
set [LeftClick? v] to [1]
end
end
- Discussion Forums
- » Help with Scripts
-
» Left Click? [SOLVED]