A strange problem with drawing images...

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
sauer2
Citizen
Posts: 61
Joined: Tue Sep 02, 2008 4:15 pm

A strange problem with drawing images...

Post by sauer2 »

I have the problem i can not explain: Sometimes an image is drawn, sometimes not, but the test rectangle is properly drawn in every case

t: test rectangle
a: image a
b: image b

it should look like this:
a b

b a
but it looks like this:
t t

b a
It is a 0.6.0 file, so maybe it is a bug.
Attachments
testgame.love
(6.23 KiB) Downloaded 90 times
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: A strange problem with drawing images...

Post by bartbes »

Found it!
Your color is still set to that of the background, if you add setColor(255, 255, 255, 255) then it draws.
User avatar
sauer2
Citizen
Posts: 61
Joined: Tue Sep 02, 2008 4:15 pm

Re: A strange problem with drawing images...

Post by sauer2 »

Cool, i didn't know you could influence the color of images!
Thanks!
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: A strange problem with drawing images...

Post by bartbes »

You already could in 0.5.0, however you had to enable it, in 0.6.0 it became default behavior.
User avatar
schme16
Party member
Posts: 127
Joined: Thu Oct 02, 2008 2:46 am

Re: A strange problem with drawing images...

Post by schme16 »

is there a way to disable it in 0.6.0?
My Development Diary - http://shanegadsby.info
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: A strange problem with drawing images...

Post by bartbes »

Yes, love.graphics.setColorMode("replace"). In case you want to switch back, you should use "modulate".
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], darkfrei and 61 guests