1°Weird Alpha
As you can see
Even though I'm setting color with this
Code: Select all
love.graphics.setColor( 226, 65, 65, 255 )
2° Layers.
Same image as above, you can see, the tank's barrel is above its base, which isn't suppose to happen. I tried to put the piece of code where I both load and draw the image above or below the base load / draw code, but nothing happened.
3° love.audio.play()
Whenever the tank shoots, it is supposed to play a sound, but it only works sometimes...
4° How do I rotate an image so that it always follows the mouse position? My brother suggested using sine and cosine but I couldn't seem to find the right operation on the wiki.
Thanks for anything helpful you are going to post!