I followed a video by CoronaGeek on how to load a map into Corona SDK using Ponytiled. I made my own collection of images and created a tileset in Tiled. Then I created an object layer and built my map. When I load the map into Corona SDK using Ponytiled, the images I created are swapped with each other. The map layout remains but the images are swapped with each other.
This is my code:
local ccx,ccy,cw,ch,acw,ach = display.contentCenterX, display.contentCenterY, display.contentWidth, display.contentHeight, display.actualContentWidth, display.actualContentHeight local tiled = require "com.ponywolf.ponytiled" local mapData = require "flatmap" local map = tiled.new(mapData) map.x,map.y = ccx - map.designedWidth/2, ccy - map.designedHeight/2
And that’s all I have in my code. Nothing surprising. Any help is highly appreciated.
I have attached 3 images, my tiled view of the map, my code, and my corona sdk view… Hope this gives an idea on what’s wrong.