[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] how to get point where is an image ...
On Tue, 2005-10-11 at 17:26 -0300, Juan Reyes LÃpez wrote:
> the problem is that I am doing a "drag & drop" so the position is
> changed to the mouse position when the button 1 is pressed, so I just
> want to know if there is some "magic" function that returns the point
> where is the player o I have do it by my self ..
If you mean the mouse cursor, you can call pygame.mouse.get_pos() to
find the current position.
http://pygame.org/docs/ref/mouse.html#pygame.mouse.get_pos