[solved] Ugly tiles when "moving camera"

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
Linuus
Prole
Posts: 10
Joined: Tue Jan 01, 2013 10:07 pm

[solved] Ugly tiles when "moving camera"

Post 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
Last edited by Linuus on Sun Mar 03, 2013 4:41 pm, edited 2 times in total.
User avatar
substitute541
Party member
Posts: 484
Joined: Fri Aug 24, 2012 9:04 am
Location: Southern Leyte, Visayas, Philippines
Contact:

Re: Ugly tiles when "moving camera"

Post 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).
Currently designing themes for WordPress.

Sometimes lurks around the forum.
User avatar
Linuus
Prole
Posts: 10
Joined: Tue Jan 01, 2013 10:07 pm

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

Post by Linuus »

Thank you so much! :D
Works great now :)
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Semrush [Bot] and 4 guests