Search found 77 matches

by Bannana97
Sun Aug 26, 2012 8:56 pm
Forum: Support and Development
Topic: love.graphics.setIcon transparent pixels go black
Replies: 7
Views: 1702

love.graphics.setIcon transparent pixels go black

When using love.graphics.setIcon, I provided a transparent .PNG of an icon that contains shadows (semi-transparent). These shadows turned black, as well as every other semi-transparent pixel in the icon.

Is there any way to fix this besides making everything solid and ugly?
by Bannana97
Sat Aug 25, 2012 11:36 pm
Forum: Support and Development
Topic: Calculating the width of text for printf()
Replies: 4
Views: 2503

Re: Calculating the width of text for printf()

Resolved.
My problem was that I was calculating the width of the text using the font from the username, where one is bold and the other is not.
by Bannana97
Sat Aug 25, 2012 11:30 pm
Forum: Support and Development
Topic: How do I set multiple colors? Help please.
Replies: 6
Views: 3951

Re: How do I set multiple colors? Help please.

Simply recall the setColor method.

love.graphics.setColor(...)
love.graphics.rectangle(...)
love.graphics.setColor(...)
love.graphics.rectangle(...)
by Bannana97
Sat Aug 25, 2012 11:20 pm
Forum: Support and Development
Topic: Calculating the width of text for printf()
Replies: 4
Views: 2503

Re: Calculating the width of text for printf()

I am running into an issue. It seems :getWidth() isn't returning proper values. I attached a picture of what is happening. As my string gets shorter/longer, the getWidth method returns different values that aren't proper. Any ideas? This is the code to init the objects , using my GUI system for disp...
by Bannana97
Sat Aug 25, 2012 7:46 pm
Forum: Support and Development
Topic: Calculating the width of text for printf()
Replies: 4
Views: 2503

Re: Calculating the width of text for printf()

Thanks! I found this right before you posted.
by Bannana97
Sat Aug 25, 2012 7:39 pm
Forum: Support and Development
Topic: Calculating the width of text for printf()
Replies: 4
Views: 2503

Calculating the width of text for printf()

I am working on a chat box, and would like the usernames of people to be colored, and the text to be white. However, I want the chat text to be positioned a few pixels after the username, so it shows like below: Bannana97: Hello everyone! Albert: Hey! Notice how the text isn't aligned. Is there any ...
by Bannana97
Mon Jul 16, 2012 5:44 pm
Forum: Support and Development
Topic: Converting my game to a .exe
Replies: 7
Views: 2723

Re: Converting my game to a .exe

Did you make the game.love file?
by Bannana97
Mon Jul 16, 2012 4:46 pm
Forum: Support and Development
Topic: Downloading a file without blocking.
Replies: 14
Views: 3680

Re: Downloading a file without blocking.

It only accesses the disk about 2 times...
by Bannana97
Mon Jul 16, 2012 2:57 pm
Forum: Support and Development
Topic: Math.Random making same output every time...
Replies: 13
Views: 4975

Re: Math.Random making same output every time...

Fortunately I only need math.random once.
by Bannana97
Sun Jul 15, 2012 7:50 pm
Forum: Support and Development
Topic: Downloading a file without blocking.
Replies: 14
Views: 3680

Re: Downloading a file without blocking.

No, once every second.
It's how I did it, it doesn't affect framerate in any way, it works for me. :cool: