I can't figure out how to work this syntax...
Posted: Sun Feb 03, 2013 6:48 am
My code is pretty short and self explanatory, I think. The issue is in ship.lua with the bullet_spawn and the bullet_draw functions. I want to be able to have any amount of bullets each with their own unique images. You can use the scroll wheel to change ship colors, and thus change the bullet colors. However, the bullets should be their own color, no matter what color the ship is.
For example: I shoot a bullet while blue, I switch to green, previous bullet stays blue, new bullets are green.
I thought my current syntax(and several other failed attempts...) would work right, but apparently not...
It's probably a simple, beginner mistake, but I can't seem to figure it out.
Thanks for your time.
For example: I shoot a bullet while blue, I switch to green, previous bullet stays blue, new bullets are green.
I thought my current syntax(and several other failed attempts...) would work right, but apparently not...
It's probably a simple, beginner mistake, but I can't seem to figure it out.
Thanks for your time.