[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Struggling with mouse input
> Pygame newbie here. I'm writing what could be considered an
> Asteroids-type clone (actually, it's an Odyssey II UFO! clone but nobody
> probably remembers OII) and want to turn my ship using the mouse. Is
> there a standard way to do this, or perhaps a sample I could look at?
> Basically, I'm catching MOUSEMOTION events and comparing the X values from
> the current and previous frames to determine which direction to turn.
Figured it out. I was only taking into account position change, not the
actual pixels traveled.
Told you I was a newbie...