Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How do i sense right click?
- XxCaptSamxX
-
New Scratcher
4 posts
How do i sense right click?
So i was working on my project, and i wanted it to be where if you right-click, something happens, but there is no right click sensing block. How would i go about doing this?
- asivi
-
Scratcher
1000+ posts
How do i sense right click?
So i was working on my project, and i wanted it to be where if you right-click, something happens, but there is no right click sensing block. How would i go about doing this?
No way to detect right cick, perhaps you want to use a combination of mouse down(left mouse button) and some key.
- apple502j
-
Scratcher
1000+ posts
How do i sense right click?
In Scratch 1.4, there was a way.
In Scratch 2.0, no way.
In Scratch 3.0, “right click” is obsolete. “right click or long press”.
In Scratch 2.0, no way.
In Scratch 3.0, “right click” is obsolete. “right click or long press”.
- FatFitFut
-
Scratcher
48 posts
How do i sense right click?
In Scratch 1.4, there was a way.
In Scratch 2.0, no way.
In Scratch 3.0, “right click” is obsolete. “right click or long press”.
Wasn't that detect if you clicked a mouse or not?
- ParadoxScratching
-
Scratcher
100+ posts
How do i sense right click?
If that was what the wiki said, not clicking the mouse means right-clicking in Scratch 1.4In Scratch 1.4, there was a way.
In Scratch 2.0, no way.
In Scratch 3.0, “right click” is obsolete. “right click or long press”.
Wasn't that detect if you clicked a mouse or not?
- apple502j
-
Scratcher
1000+ posts
How do i sense right click?
In 1.4:
when stage clicked::hat eventsboth left and right
<mouse down?>only left
- zombie_master2
-
Scratcher
4 posts
How do i sense right click?
<mouse down?>will do both left and right click in scratch 3.0, so you can't really do right click without having left click





























- Wainggan
-
Scratcher
500+ posts
How do i sense right click?
Please don't necropost.<mouse down?>will do both left and right click in scratch 3.0, so you can't really do right click without having left click
- scratchastroLOL
-
Scratcher
1000+ posts
How do i sense right click?
Well… technically it is possible, but its not really a good idea. first of all, it will detect left click and right click, so there's no point on trying to do that. also, right-click would show up the flash menu, so it could block part of the project. i would just use this code to pretend detect a right click:
when this sprite clicked
if <key [r v] pressed?> then
say [Prete- I mean right click!]
else
say [Normal Click] for (2) secs
end
if <<<key [r v] pressed?> and <touching [mouse pointer v] ?>> and <mouse down?>> then
say [Right Click] for (2) secs
end
Last edited by scratchastroLOL (June 2, 2020 20:38:17)
- colorvitamin
-
Scratcher
14 posts
How do i sense right click?
Can you detect right click or not in scratch 3?
Last edited by colorvitamin (Jan. 4, 2021 06:33:34)
- colorvitamin
-
Scratcher
14 posts
How do i sense right click?
So i was working on my project, and i wanted it to be where if you right-click, something happens, but there is no right click sensing block. How would i go about doing this?idk
- aceyp9000
-
Scratcher
100+ posts
How do i sense right click?
Detecting right click in Scratch 3.0 is not possible to my knowledge since Scratch only recognizes left click.
- KJomnom
-
Scratcher
4 posts
How do i sense right click?
maybe this can help with the click sensor
when green flag clicked
if <mouse down?> then
do anything.
else
do anything
end
- KJomnom
-
Scratcher
4 posts
How do i sense right click?
or this can help
when green flag clicked
forever
if <<key [ r] pressed?> and <<mouse down?> and <touching [ mouse pointer] ?>>> then
end
end
end
- KJomnom
-
Scratcher
4 posts
How do i sense right click?
i mean this
when green flag clicked
forever
if <<mouse down?> and <<key [ r] pressed?> and <touching [ mouse pointer] ?>>> then
do anything
- Discussion Forums
- » Help with Scripts
-
» How do i sense right click?