E-toys questions

karl karl.ramberg at chello.se
Mon Mar 20 05:46:03 UTC 2006


Blake skrev:
> I got nothing over at the Squeakland mailing list, so I thought I'd 
> try these questions here:
>
> 1. Can I find out when and where a user clicks in a world, and 
> distinguish between right and left clicks?
Set the script to fire on mouseUp and set the players position to mouse 
x and y.
There is no hooks for right click in e-toys I think.
Karl
>
> 2. Why is it if I have a script that adjusts an object's position to 
> follow the mouse (by changing its X and/or Y by one to move it closer 
> to the current mouse position), I get a bobble (i.e., the graphic 
> moves on, then off, the mouse cursor repeatedly) if I set the script 
> to fire an odd number of times but not if I set it to even?
>
> Thanks!
>
>
>
>
> --No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 2006-03-17
>
>




More information about the Squeak-dev mailing list