How do I use a map I made in Tiled in my corona game? And how can I interact with it in game? I've looked online, but haven't found anything that makes sense. Any suggestions?
Jump to content
There are several community developed Tiled map engines you can find. They include:
Million Tile Engine
You can search for those. PonyTiled and Berry are being actively developed. MTE and Dusk are pretty mature engines, but if Tiled changes a behavior (like when they switched from internal tile sets to external tile sets as the default), those engines didn't update and you have to do extra work in Tiled to use the older behavior.
You may be running into the issue of internal vs. external tile sets. Dusk only works with internal tile sets which was the Tiled default back pre 1.0 of Tiled. Tiled now defaults to external tile sets. You should try to set your Tiled map to use internal tilesets and try again.
If not, I would look at PonyTiled since it works with external tile sets.
Have you downloaded and examined the Sticker-Knight template yet? https://marketplace.coronalabs.com/app-templates/sticker-knight-platformer
It uses PonyTiled.
I've been trying ponytile; and I've managed to get the map that it comes with to show, but when I try to get a custom map to load, all i get is a black screen. What am I doing different?
Try follow @Rob Miracle suggestion
You should try to set your Tiled map to use internal tilesets
You could also try using the exported .lua file option. With some for statements and some dot operator action it is really quite easy. I did it this way for a project I've been working on. You'll just have to do all the coding for what gets placed and where, but it gives you complete control. For instance I use tile layers for the placement of the image tiles, action/triggers, level data, etc and a solids layer for where any color fills are needed. My level files have anywhere form 12-15 individual layers and this way loads very quickly. It only takes a second or two to load a level.
Community Forum Software by IP.Board