This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-04-05 00:09:00

Roblee
New Scratcher
Registered: 2011-04-04
Posts: 1

Right & Left Click?

How do I control images using the right click and left click? I would like to be able to click through a certain set of images using right click, and another set of images using left click (basically images change based on whether you right click or left click). Is there a way I can do that?

Offline

 

#2 2011-04-05 06:49:42

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Right & Left Click?

No.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3 2011-04-05 10:04:03

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Right & Left Click?

Sorry, Scratch currently does not support sensing between left and right click.  hmm  Some Scratch Modifications do, though!  smile

Offline

 

#4 2011-04-05 12:55:57

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: Right & Left Click?

Yes, it is possible.

<when[  mysprite  ]clicked>
<if><mouse down?>
This is left clicked
<else>
This is right clicked
<end>


Just so you know, this only works offline and online using the java player.  The new Flash player does NOT support right-clicking anything.  And, since the site is migrating to the new Flash player, this method will not work for long.

Last edited by BoltBait (2011-04-05 12:57:42)


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#5 2011-04-05 19:31:52

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Right & Left Click?

BoltBait wrote:

Yes, it is possible.

<when[  mysprite  ]clicked>
<if><mouse down?>
This is left clicked
<else>
This is right clicked
<end>


Just so you know, this only works offline and online using the java player.  The new Flash player does NOT support right-clicking anything.  And, since the site is migrating to the new Flash player, this method will not work for long.

Wow! I never knew that, thanks!


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer