[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] A way of telling time?



Joseph Quigley wrote:
Hi,
I just dug fairly deep and discovered pygame.time.set_timer(), but it looks like I can only have 2 events at one time.

You only ever really need one timer, running at the
lowest common multiple of all the event rates you're
interested in. Then you keep your own counts of
clock ticks to determine when various things happen.

--
Greg