Skip to content

Convert TMX maps to GodotEngines TSCN so you can use Scenes/Nodes as tiles.

License

Notifications You must be signed in to change notification settings

alketii/tmx2tscn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

tmx2tscn

Convert TMX maps to GodotEngines TSCN so you can use Scenes/Nodes as tiles.

Usage

  1. Download and install Tiled http://www.mapeditor.org
  2. Create a new map
  • Orientation: Orthogonal
  • Tile layer format: CSV
  • Tile render order: Right Down
  1. Create a tileset: Map > New tileset
  2. Add some tiles (If you have chosen "Collection of Images")
  3. Click on a tile and at Properties add a new property named "scene" with value "res://dir/scene.tscn" (the location of scene) so a tile would represent a scene.
  4. After finishing the map, export it as JSON format.
  5. Run "tmx2tscn.py"

Options

  • -i=file.json : Input file, default: input.json
  • -o=file.tscn : Output file, default: output.tscn
  • -oo=true/false : Origin offset, default: true
  • -h : This help file

About

Convert TMX maps to GodotEngines TSCN so you can use Scenes/Nodes as tiles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages