E-toys questions

Blake blake at kingdomrpg.com
Mon Mar 20 05:45:02 UTC 2006


On Sun, 19 Mar 2006 13:37:26 -0800, Blake <blake at kingdomrpg.com> wrote:

> 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?
>
> 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?

Jerome Peace answered this one: Apparently an object's X and Y aren't  
necessarily integers.




More information about the Squeak-dev mailing list