Well, I figured out what I was doing wrong... I think the problem was that I was (successfully) over complicating a simple thing. Well, I have bullet code that doesn't return errors or anything, the next important thing is making bullets disappear and stuff when they hit the edge of the screen or the character. I think I'll just make the bullets die when they hit people instead of re-using them because there's no point in coding pretty now, as my code is already ugly and I'm going to completely re-write it after school is out. Thanks for all your help!
On 4/13/07, Charles Christie <[EMAIL PROTECTED]> wrote:
Oh, I just noticed that it's for player bullets. Boss bullets don't need the interval thing, do they? I'm still trying to wrap my head around "what I need" and "what I can do". Getting the two confused isn't helping me get done by the end of April... On 4/12/07, Greg Ewing <[EMAIL PROTECTED]> wrote: > > 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 >