Advanced Tiled Loader - No longer maintained
Re: Advanced Tiled Loader
How to avoid that black spaces? To full windows with my tiles?
-
- Prole
- Posts: 3
- Joined: Mon Apr 16, 2012 10:58 pm
Re: Advanced Tiled Loader
All right, I'm having a devil of a time trying to get my maps to display correctly with this.
It worked fine for a while, but now it's displaying maps that are all kinds of messed up. I don't know if it was the update to 0.10.0 that did it, or what... Basically, I've got a simple single-layer map from Tiled that I want to display, but nothing is where it's supposed to be and the map actually seems to be wrapping and repeating itself in places. The bottom, top, and left sides never display, and the tiles that show in the middle are in a different order.
What am I missing here? I imagine there's something simple that I'm not doing or need to do, but it escapes me. I've been pecking at this on and off for a couple weeks now, and nothing seems to work. Check out the attached .love, and then open up the "map01.tmx" in Tiled and you'll see what I mean.
It worked fine for a while, but now it's displaying maps that are all kinds of messed up. I don't know if it was the update to 0.10.0 that did it, or what... Basically, I've got a simple single-layer map from Tiled that I want to display, but nothing is where it's supposed to be and the map actually seems to be wrapping and repeating itself in places. The bottom, top, and left sides never display, and the tiles that show in the middle are in a different order.
What am I missing here? I imagine there's something simple that I'm not doing or need to do, but it escapes me. I've been pecking at this on and off for a couple weeks now, and nothing seems to work. Check out the attached .love, and then open up the "map01.tmx" in Tiled and you'll see what I mean.
- Attachments
-
- WeirdMaps.love
- My weirdness
- (43.59 KiB) Downloaded 80 times
Re: Advanced Tiled Loader
It's hard to tell without a .love but it looks like the draw range isn't being set correctly. Try adding in this line before you draw the map:Krizzu wrote:How to avoid that black spaces? To full windows with my tiles?
Code: Select all
map:setDrawRange(-math.huge, -math.huge, math.huge, math.huge)
That's really strange. I'll take a look at it and let you know if I figure something out.MasterShizzle wrote:All right, I'm having a devil of a time trying to get my maps to display correctly with this.
It worked fine for a while, but now it's displaying maps that are all kinds of messed up. I don't know if it was the update to 0.10.0 that did it, or what... Basically, I've got a simple single-layer map from Tiled that I want to display, but nothing is where it's supposed to be and the map actually seems to be wrapping and repeating itself in places. The bottom, top, and left sides never display, and the tiles that show in the middle are in a different order.
What am I missing here? I imagine there's something simple that I'm not doing or need to do, but it escapes me. I've been pecking at this on and off for a couple weeks now, and nothing seems to work. Check out the attached .love, and then open up the "map01.tmx" in Tiled and you'll see what I mean.
-- EDIT --
Okay I've fixed the issue and uploaded a new version of ATL. Let me know if you have any more problems.
-
- Prole
- Posts: 3
- Joined: Mon Apr 16, 2012 10:58 pm
Re: Advanced Tiled Loader
Works like a charm now, thanks for the quick fix. And my other issue with the draw range (same as Krizzu's) is now solved.Kadoba wrote:Okay I've fixed the issue and uploaded a new version of ATL. Let me know if you have any more problems.
Two trouble-shoots in one post! You are a wizard, sir.
Re: Advanced Tiled Loader
And what about case, when I got map 1280x960 (maden in tiled) and my window is only 800x600?
When I put it and set draw range (0,0,1280,960) all map is squeezed in that 800x600.
How to avoid it?
When I put it and set draw range (0,0,1280,960) all map is squeezed in that 800x600.
How to avoid it?
Re: Advanced Tiled Loader
I'm not sure if I understand. Are you saying that the map is resized in the game? ATL doesn't do any resizing. The draw range is just the portion of the map to draw. Can you upload a .love?
Re: Advanced Tiled Loader
It looks like you're having the same problem Shizzle was having. The latest version fixes that.
Re: Advanced Tiled Loader
So I didn't had latest version of ATL?
Thanks anyway
Thanks anyway
Re: Advanced Tiled Loader
Another small update. Relative paths from .tmx files to tileset images now work completely. Traveling backwards in directories (/../) does not work natively so I had to resort to some gsub sorcery. Now you should be able to require the library, load the maps, and store the tileset images anywhere you want.
Who is online
Users browsing this forum: Google [Bot] and 2 guests