Reputation: 43
I had a question about how my love2d background image. It has been taking the color from different objects and tinting it. The background is supposed to be green and blue, but it is taking the color of the purple rectangle and tinting it purple. I am fairly new to lua and love2D, but I can't find any answers to this question. [my game screen1
Upvotes: 3
Views: 704
Reputation: 343
Since you are drawing a background image, what you want to do is reset the drawing color to white before drawing the background.
love.graphics.setColor(255, 255, 255) --white
love.graphics.draw(background)
Upvotes: 3
Reputation: 150
First what you may want to do is set a neutral background before you set the image, using function
love.graphics.setBackgroundColor( red, green, blue )
This will initiate a set value of the background before adapting to the background picture. I recommend This video to learn more, hope this helped :)
Upvotes: 1