Page 1 of 1

A problem with drawing a tiled map

Posted: Wed Jul 09, 2014 3:23 pm
by Combokarel
So I am making a puzzle game about a ghost that is afraid of the dark (so I don't have to handle complicated collision with the terrain :) ) and I ran into a serious problem that I don't understand. I made a level with Tiled and I made my own Tiled loader (it's really bad but at least I understand it), but if I try to draw the map every second row of the first layer has black where there should be normal tiles.
Thanks for all the help in advance.

P.S. sorry for the bad English if there is any.

Re: A problem with drawing a tiled map

Posted: Wed Jul 09, 2014 8:17 pm
by Rukiri
Sounds like an issue with your tiled draw function, have you tried STI to see if you could replicate the problem?
I think I know what the issue is, but can't fix it for like 6 hours as I'm at work... :cry:

Re: A problem with drawing a tiled map

Posted: Thu Jul 10, 2014 11:47 am
by Combokarel
Sorry for being a total noob :), but what is STI?

Re: A problem with drawing a tiled map

Posted: Thu Jul 10, 2014 2:39 pm
by dan369
Combokarel wrote:Sorry for being a total noob :), but what is STI?
http://love2d.org/forums/viewtopic.php?f=5&t=76983 :)

Re: A problem with drawing a tiled map

Posted: Sat Jul 12, 2014 2:33 pm
by Combokarel
STI worked perfect, now it's time for the lighting engine :)

Re: A problem with drawing a tiled map

Posted: Sat Jul 12, 2014 3:32 pm
by bobbyjones
What kind of lighting? Like actual lighting or like the type of light that either makes things black or visible.

Re: A problem with drawing a tiled map

Posted: Sun Jul 13, 2014 7:41 pm
by Combokarel
I think that the first option will be better so that i can use moving objects to emit light too.