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.
-
sauer2
- Citizen
- Posts: 61
- Joined: Tue Sep 02, 2008 4:15 pm
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
-
bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
-
Contact:
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.
-
sauer2
- Citizen
- Posts: 61
- Joined: Tue Sep 02, 2008 4:15 pm
Post
by sauer2 »
Cool, i didn't know you could influence the color of images!
Thanks!
-
bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
-
Contact:
Post
by bartbes »
You already could in 0.5.0, however you had to enable it, in 0.6.0 it became default behavior.
-
schme16
- Party member
- Posts: 127
- Joined: Thu Oct 02, 2008 2:46 am
Post
by schme16 »
is there a way to disable it in 0.6.0?
-
bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
-
Contact:
Post
by bartbes »
Yes, love.graphics.setColorMode("replace"). In case you want to switch back, you should use "modulate".
Users browsing this forum: gianmichele, Google [Bot] and 67 guests