Page 1 of 1

Spritesheet

Posted: Thu Jun 22, 2017 8:07 pm
by Rasmodius
Hello, L have a problem with spritesheets.
If I create a spritesheet and use it, I have some problems with pixels from another image in the spritesheet. The position and size are correct. I have tried to make more distance between images, but it takes no effect. For spritesheet I use Quads. Löve-version 0.10.2.
What can I do?
Thanks.

Re: Spritesheet

Posted: Thu Jun 22, 2017 8:36 pm
by raidho36
Sprites in a sheet need to be padded by 1 pixel from all sides, but the quad shall remain un-padded. Pixels bleed because of texture interpolation on the edge, but you can make it invisible if it bleeds into transparent color.

Re: Spritesheet

Posted: Thu Jun 22, 2017 8:42 pm
by Rasmodius
raidho36 wrote: Thu Jun 22, 2017 8:36 pm Sprites in a sheet need to be padded by 1 pixel from all sides, but the quad shall remain un-padded. Pixels bleed because of texture interpolation on the edge, but you can make it invisible if it bleeds into transparent color.
Thanks very much. It works =)