Page 1 of 1
Bullets not being generated or invisible
Posted: Sat Apr 18, 2015 12:26 pm
by piercegage
My code compiles, but when I click to fire a bullet (missile in my case) they don't seem to be generated. I have looked at other tutorials, and followed them closely. But I run into the same problem with these tutorials as well. The bullets are not being generated or are invisible.
Attached is my .love file
left mouse click is supposed to generate a new bullet
Any help would be greatly appreciated
Re: Bullets not being generated or invisible
Posted: Sat Apr 18, 2015 2:33 pm
by Duster
piercegage wrote:My code compiles, but when I click to fire a bullet (missile in my case) they don't seem to be generated. I have looked at other tutorials, and followed them closely. But I run into the same problem with these tutorials as well. The bullets are not being generated or are invisible.
Attached is my .love file
left mouse click is supposed to generate a new bullet
Any help would be greatly appreciated
First of all you've written if button == "1" rather than if button == "l", but there are a lot more problems than that. Here's a new fixed .love with comments so you know what I did.
Re: Bullets not being generated or invisible
Posted: Sun Apr 19, 2015 10:23 am
by piercegage
Thanks a bunch for the quick reply, and more so for explaining the changes helps a ton.