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.
A problem with drawing a tiled map
- Combokarel
- Prole
- Posts: 23
- Joined: Sun Apr 27, 2014 11:18 am
A problem with drawing a tiled map
- Attachments
-
- PCA.love
- This is the code for the game (it's called PCA wich stands for Point and Click Adventure :) )
- (7.78 KiB) Downloaded 157 times
Re: A problem with drawing a tiled map
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...
I think I know what the issue is, but can't fix it for like 6 hours as I'm at work...
- Combokarel
- Prole
- Posts: 23
- Joined: Sun Apr 27, 2014 11:18 am
Re: A problem with drawing a tiled map
Sorry for being a total noob , but what is STI?
Re: A problem with drawing a tiled map
http://love2d.org/forums/viewtopic.php?f=5&t=76983Combokarel wrote:Sorry for being a total noob , but what is STI?
- Combokarel
- Prole
- Posts: 23
- Joined: Sun Apr 27, 2014 11:18 am
Re: A problem with drawing a tiled map
STI worked perfect, now it's time for the lighting engine
-
- Party member
- Posts: 730
- Joined: Sat Apr 26, 2014 7:46 pm
Re: A problem with drawing a tiled map
What kind of lighting? Like actual lighting or like the type of light that either makes things black or visible.
- Combokarel
- Prole
- Posts: 23
- Joined: Sun Apr 27, 2014 11:18 am
Re: A problem with drawing a tiled map
I think that the first option will be better so that i can use moving objects to emit light too.
Who is online
Users browsing this forum: Google [Bot] and 3 guests