James Paige wrote:
On Fri, Jun 13, 2008 at 07:21:30PM +1000, Astan Chee wrote:
* When dragging with RMB, the mechanics feel off.  The mouse cursor
should stay on top of roughly the same bit of space as I drag it, not
have the space go zooming out past it.
I dont know how to do this in pygame. Is there an example somewhere of how to do this?

WHen you recieve the right mouse button's mouse down event, store the X/Y position of the mouse. Then, until you recieve the mouse up event, position the camera according to the difference between the current position of the mouse and the position when the right button was first pressed.
Somehow I still dont understand this.Can you paraphrase this in pseudocode or some snippet?
Thanks
---
James Paige


--
"Formulations of number theory: Complete, Consistent, Non-trivial. Choose two."



Animal Logic
http://www.animallogic.com

Please think of the environment before printing this email.

This email and any attachments may be confidential and/or privileged. If you 
are not the intended recipient of this email, you must not disclose or use the 
information contained in it. Please notify the sender immediately and delete 
this document if you have received it in error. We do not guarantee this email 
is error or virus free.

Reply via email to