Map Not Loading Correctly

1 reply [Last post]
User offline. Last seen 2 years 25 weeks ago. Offline
Joined: 11 Nov 2011

I recently purchased Lime and am trying to set up my first map. I created a one layer map in Tiled, saved it, and loaded it up in the simulator.

Here's what I got:

I'm not sure what I did wrong. Here's my code:

local lime = require "lime"
local map = lime.createVisual(lime.loadMap("maps/gameScene1.tmx"))

The only thing that I can think of that might be the problem is that I added the tile set with some margins and spacing because without it, when things scale they leave a line between tiles (at least that happened with my old tile manager).

Has anyone else had this problem before? If so, how did they fix it?


User offline. Last seen 4 years 48 weeks ago. Offline
Joined: 28 Dec 2011

I believe it is caused by the margin and spacings, this happened to me before, this is because Lime probably did not support the margin and spacing, I had to change a few lines of code in the library and it worked, IIRC the code that needs to be changed is in "lime-tileSet.lua"

Viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.