Exporting Maps from TILED

sv7
New face
Posts: 1
Joined: Sun May 25, 2014 1:08 am

Exporting Maps from TILED

Postby sv7 » Sun May 25, 2014 1:20 am

Hi,
I just purchased Tiled to Unity and I'm having some trouble getting my prefabs created from my exported TILED map. I watched the YouTube tutorials, but those didn't really seem to answer my questions, as I do not have (and do not intend to buy) Maya to use this script. Does my TILED map need to have any specific settings to work with Tiled to Unity, or are there any pitfalls/gotchas I might have missed from the videos?

What is the general workflow of Tiled to Unity without Maya?

User avatar
dez
L.F.A. TEAM
Posts: 415
Joined: Thu Jun 02, 2005 11:16 pm
Contact:

Re: Exporting Maps from TILED

Postby dez » Sun May 25, 2014 4:16 am

Hi there!
thank you for your purchase.

That i can think of, there are 2 things you might consider:
1) is that the tiled map must be saved as base64 uncompressed (i forgot to say that in the video, but it does give you an error in Unity that should tell you this if you try to load another kind of map). The map must also be orthogonal (a grid map, not a hex map).


2) and the last few seconds of the intro video.
namely:
- that your tiles in your 'setup scene' must be placed at tile size intervals
- that the position of your tiles in 3D matches their position in the texture map you are using in Tiled
- that variants are placed vertically as I show in the videos
- the tiles have to be placed along the x+ z+ quadrant with 0,0 at their upper left corner in Unity

in fact you don't even have to do the things in #2 in your 3D program if you would rather arrange your tiles manually in Unity. (I don't recommend this, but I tell you just so you know that doing the things in #2 in your modeling program is simply part of my suggested workflow, it is not a requirement for the tools to work). It's only important that they end up as described in Unity, and however you want to get your tile models into those positions in Unity is ultimately up to you.

I'm not totally sure if I answered your question though, can you be more specific as to where you are getting stuck?
Feel free to post more questions if you run into any trouble.

User avatar
dez
L.F.A. TEAM
Posts: 415
Joined: Thu Jun 02, 2005 11:16 pm
Contact:

Re: Exporting Maps from TILED

Postby dez » Thu May 29, 2014 6:34 pm

BTW I just thought of something else that could be a 'gotcha' if you don't plan propertly: the materials you use for your tiles.
Depending on the perspective and size of the view in your game, if you are showing many tiles at once you will want to use very few materials on all your tiles: like only 1 or 2 materials if you plan to show thousands of tiles at once.
You can use more materials if you show few tiles at once.

Optimizing geometry is a huge subject, but just thought I would mention it since I don't know how experienced with this you might be. I give some suggestions in the included help file for this as well.

Were you able to get your prefabs generated?


Return to “Tiled to Unity”

Who is online

Users browsing this forum: No registered users and 1 guest

cron