Hi guys,
I currently figured out how to load a simple tile map into my lua file and everything is working fine. BTW I use Tiled as my TileMapEditor.
My next step is to define a new layer and add physics to it so that my character can walk on it. I do this by adding following properties to the layer in Tiled: physics:enabled and set this property to true.
In my lua file I added following code:
local dusk = require("Dusk.Dusk") require("Plugins.mapcutter") -- GENERAL display.setStatusBar( display.HiddenStatusBar ) display.setDefault( "magTextureFilter", "nearest") display.setDefault( "minTextureFilter", "nearest") -- TILEMAP local map = dusk.buildMapFromLayers("level01.json", {1,2})
But every time I add this property corona drops an error.
Is there anything I need to pay more attention to, so that the layer is recognized by corona? Have a look at the error message attached
would be great if someone could give me a hint.
thanks and cheers