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

Re: [pygame] Firing bullets



Charles Christie wrote:
I just noticed something... You have an interval variable that is the number of ticks since the last frame. How would I pass the number of ticks since the last frame to the equation?

In my games, I just set the pygame clock to produce an event every so many milliseconds, and then assume that's the amount of time that goes by for each frame.

It may not be exactly right for every frame, but as long
as you can keep up, it will be right on average.

--
Greg