I am having problems loading my Tiled map into Corona using PonyTiled.
This is the error I am getting:
Attempt to index local 'image' (a nil value) File: com/ponywolf/ponytiled.lua Line: 154
I don't know why this is happening, I checked that the directory of my images and files matched the tutorial he gave for Corona Geek.
My only code is this:
--Require Tiled Support Library local tiled = require "com.ponywolf.ponytiled" local physics = require "physics" local mapData = require "lavacave" physics.setDrawMode("hybrid") --Add Map Data local map = tiled.new(mapData) map.x = display.contentCenterX - map.designedWidth / 2 map.y = display.contentCenterY - map.designedHeight / 2
What could be causing this?