Page 1 of 1

Love randomly deciding not to draw things

Posted: Thu May 22, 2014 10:46 am
by OstrichRider
So I'm working on an asteroids game and my bullets are sometimes being drawn and sometimes not. It's different every time I start up the game. Very rarely all five bullets will be drawn. I really have no idea what's wrong so I've attached what I have so far. There's no collision yet and no bullet movement yet since I can't get them all to draw most of the time. Any help would be greatly appreciated.

Re: Love randomly deciding not to draw things

Posted: Thu May 22, 2014 11:06 am
by bartbes
I added some prints, and it turns out your "pews" are just way offscreen if they're not drawing.

Re: Love randomly deciding not to draw things

Posted: Thu May 22, 2014 11:19 am
by OstrichRider
Thanks a lot! Now I just have to find out why they're spawning offscreen... EDIT: Found it! :awesome: