Page 1 of 1

[solved] Ugly tiles when "moving camera"

Posted: Sun Mar 03, 2013 9:07 am
by Linuus
I'm working on a real-time strategy platforming game set in space, I've got the editor up and running an I can load maps into the game and the pixel-perfect collision works well (right click to spawn creatures).

Howerver when I move the camera (press arrow-keys to off-set everything), white lines appear around the tiles which make it look really ugly, is there any way to solve that or is that just what happens when you use drawquad..?

EDIT 2: now it's the right one, sorry

Re: Ugly tiles when "moving camera"

Posted: Sun Mar 03, 2013 12:28 pm
by substitute541
Ah, simple. That happens when you move your camera in non-integer values (like 0.333333333333 or 16.67). Try adding math.floor in the coordinates of your images (and, if you use offsets, the offsets in your images too).

Re: [solved] Ugly tiles when "moving camera"

Posted: Sun Mar 03, 2013 4:41 pm
by Linuus
Thank you so much! :D
Works great now :)