Love randomly deciding not to draw things

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
OstrichRider
Prole
Posts: 3
Joined: Sun May 18, 2014 8:41 am

Love randomly deciding not to draw things

Post 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.
Attachments
VectorAsteroids.love
(4.54 KiB) Downloaded 152 times
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Love randomly deciding not to draw things

Post by bartbes »

I added some prints, and it turns out your "pews" are just way offscreen if they're not drawing.
OstrichRider
Prole
Posts: 3
Joined: Sun May 18, 2014 8:41 am

Re: Love randomly deciding not to draw things

Post by OstrichRider »

Thanks a lot! Now I just have to find out why they're spawning offscreen... EDIT: Found it! :awesome:
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 60 guests