I thought i would give love a shot but the images i am drawing are black completely unless i make a part transparent then the transparent part is transparent and the rest is black any ideas?
here is what im using
HELP!!!:Images completely black
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
HELP!!!:Images completely black
- Attachments
-
- game (3).zip
- Images are black wtf?
- (3.77 KiB) Downloaded 124 times
Re: HELP!!!:Images completely black
Try removing setColor from love.load and modifying love.draw like this:
Code: Select all
function love.draw()
love.graphics.draw( img1, img_x, img_y )
love.graphics.setColor(0,0,0,255)
love.graphics.print( "Mouse X: ".. mouse_x .. " Mouse Y: " .. mouse_y, 10, 20 )
love.graphics.setColor(255,255,255,255)
if Grab == false then
love.graphics.draw( img2, mouse_x, mouse_y )
end
end
Re: HELP!!!:Images completely black
Since the colors of images are set by the current set color, you'll have to add love.graphics.setColor(255, 255, 255) before starting to draw the images.
Code: Select all
function love.draw()
love.graphics.setColor(255, 255, 255)
love.graphics.draw( img1, img_x, img_y )
love.graphics.setColor(0, 0, 0) --Change back to black for the text
love.graphics.print( "Mouse X: ".. mouse_x .. " Mouse Y: " .. mouse_y, 10, 20 )
if Grab == false then
love.graphics.setColor(255, 255, 255)
love.graphics.draw( img2, mouse_x, mouse_y )
end
end
Re: HELP!!!:Images completely black
Thanks that worked.
Who is online
Users browsing this forum: No registered users and 9 guests