Tiled - path to images

I am going to try to do a platform scroller game, and decided to checkout Tiled.  It looks like a great tool to use.

I have created a map and tilesets for the map in Tiled.  I exported the tileset as a lua file to use in my app.  I see the file path for each image is the path to the art folder on my mac where I pulled those images.

How do I, when I export that tileset from Tiled, as a lua file… and see that the path is a path to a directory in my app folder… such as “Textures/Tiles” ?  

I have been searching for quite awhile on internet and forum posts and see no where that shows me how I can change that path to the images, from the local mac path, to a local path in my app project

Anyone have any insight into this?

Sorry, I am missing what likely is obvious, and admittedly I just started playing with Tiled, but after looking at many posts for hours for an answer with no luck, thought I would ask for some guidance on this.

Thanks

Bob

  1. Use one of these solutions or roll-your-own: 

 

  1. Those images must be UNDER the same folder as your game.  They can’t be in some arbitrary folder on your computer.

 

(or in a subfolder of the folder containing your TMX files, but then you need to copy that folder into your game).

RG,

Thanks.  I have looked at 3 of those you mentioned, MTE, Ponytiled and RGTiled, but only briefly.  I would prefer to use RGTiled or PonyTiled - but yours as you say is still changing, so I am just experimenting at this point.  From what I briefly viewed, yours is most likely easiest for me to understand and use.

I had wrongly guessed that I could do with Tiled, similar to what I do with art I manipulate and create in gimp, in that when ready to use it for an app, just export it directly to the app folder, even though I originally pulled the art from path on my computer.

I have the path right now.  

Thanks

Bob

Yeah.  I wish there were a way to export both the level file and assets, but still, even without that feature it is a good tool.

  1. Use one of these solutions or roll-your-own: 

 

  1. Those images must be UNDER the same folder as your game.  They can’t be in some arbitrary folder on your computer.

 

(or in a subfolder of the folder containing your TMX files, but then you need to copy that folder into your game).

RG,

Thanks.  I have looked at 3 of those you mentioned, MTE, Ponytiled and RGTiled, but only briefly.  I would prefer to use RGTiled or PonyTiled - but yours as you say is still changing, so I am just experimenting at this point.  From what I briefly viewed, yours is most likely easiest for me to understand and use.

I had wrongly guessed that I could do with Tiled, similar to what I do with art I manipulate and create in gimp, in that when ready to use it for an app, just export it directly to the app folder, even though I originally pulled the art from path on my computer.

I have the path right now.  

Thanks

Bob

Yeah.  I wish there were a way to export both the level file and assets, but still, even without that feature it is a good tool.