Hi. I’m new to this stuff sorry if my question isnt great. I’m trying to use tiled and just get to know it. I made a basic thing but i’m having an issue. When being ran in the simulator, it is pulling the wrong images (or non) for the spots. (you can see in the image i uploaded, the Block becomes the knight, the knight becomes the alter, and the alter doesnt show up.
I know i’m doing some things right since I’m getting some images pulled in. I also am sure i’m making huge mistakes. (i do know i’ve been exporting/saving correctly each time)
I’ve attached a photo showing my tiled file and the correlating result in corona. (i’m just using the sticker knight items for the tileset.)
Any help would be much appreciated. (if you need more from me let me know)
Thanks a lot,
JD
Main.lua code
– Your code here
local tiled = require “com.ponywolf.ponytiled”
local physics = require “physics”
– if you use physics bodies in your map, you must
– start() physics before you load your map
physics.start()
local mapData = require “maps.objects.test” – load from lua export
local map = tiled.new(mapData, “maps/objects”) – look for images in /maps/objects/
map.x,map.y = display.contentCenterX - map.designedWidth/2, display.contentCenterY - map.designedHeight/2
– drag the whole map for fun
local dragable = require “com.ponywolf.plugins.dragable”
map = dragable.new(map)
I’m sorry if this formatting is bad. is there anything in this that is causing it to pull the wrong png images?