Questions tagged [tmx]

TMX (Tile Map XML) is the file format produced by the Tiled Map Editor.

The TMX (Tile Map XML) map format used by Tiled is a flexible way to describe a tile based map. It can describe maps with any tile size, any amount of layers, any number of tile sets and it allows custom properties to be set on most elements. Beside tile layers, it can also contain groups of objects that can be placed freely.

ScreenShot

The Tiled Map Editor is available at mapeditor.org. It is free software, written in C++, that uses the Qt application framework. The main features include:

  • General purpose tile map editor with XML-based map format
  • Supports orthogonal and isometric maps Custom objects can be placed with pixel precision
  • Full undo/redo and copy/paste support
  • Add custom properties to tiles, layers, objects or the map
  • Automatically reloads tilesets when changed externally
  • Resize or offset tile map later as needed
  • Efficient tile editing tools like stamp and fill brushes
  • Supports input/output plugins to open and save files in custom formats
159 questions
39
votes
4 answers

Decompress gzip and zlib string in javascript

I want to get compress layer data from tmx file . Who knows libraries for decompress gzip and zlib string in javascript ? I try zlib but it doesn't work for me . Ex , layer data in tmx file is :
Toan Nguyen
  • 1,043
  • 3
  • 13
  • 24
10
votes
3 answers

TMX(Translation Memory eXchange) files in python

Is there a module for handling TMX(Translation Memory eXchange) files in python, if not, what would be another way to do it? As it stands, I have a giant 2gb file with French-English subtitles. Would it be possible to even handle such a file or…
UrbKr
  • 621
  • 2
  • 11
  • 27
6
votes
1 answer

TILED editor - object placement possible to snap to grid in Object Layer?

thanks again in advance for any time spent helping me. Thankfully, I have been able to import TMX to libgdx game without much of a problem, however this is now the first time of using Object Layer, for which at this moment in time I only want to…
I_Keep_Trying
  • 395
  • 3
  • 17
4
votes
3 answers

Are there any command line TMX editing tools (multilanguage support) for Linux?

I'm building an application with multilanguage support in TMX. I've found some editors for windows, but since I'm developing on a remote server, I'm looking for a command line tool for linux to translate strings and write them to a TMX file. Does…
I.devries
  • 8,747
  • 1
  • 27
  • 29
3
votes
1 answer

How exactly are TMX map files base_64-encoded?

I am writing a game for iOS that uses .tmx map files. I am creating the maps in the application 'Tiled' and then at some point before they get to iOS, I'm parsing them with Perl. When I save the files as straight XML, it's a cinch for perl to parse…
todd412
  • 1,308
  • 2
  • 17
  • 24
3
votes
1 answer

Overlay tiles onto sprite in pygame

I am creating a tile-based 2d overworld for a game - heavily influenced by Pokemon - using pygame/python, Tiled for .tmx files, and the tmx library by Richard Jones. The code I'm using is mostly based on this wonderful demo of Pallet Town in python.…
Victoria
  • 51
  • 1
  • 5
3
votes
4 answers

How do I import .tmx (Tile Map Editor) file into my XNA Project

I tried to load a .tmx (Tile Map Editor) file into my project but I'm getting this error: Cannot autodetect which importer to use for "Level1.tmx" There are no importers which handle this file type. Specify the importer that handles this file type…
Rekha
  • 41
  • 1
  • 1
  • 2
3
votes
1 answer

Haxe - Why can I not access a child's attribute without getting an error that the parent does not have the given attribute?

I've recently been getting into Haxe and just started to use HaxeFlixel to load a Tiled .TMX file. I am creating a TiledMap object and passing it the TMX file path, then I want to iterate over the layers in that object to add them to the game scene.…
Jay Turner
  • 33
  • 5
3
votes
1 answer

Reading xml/tmx file from android assets folder with NDK and SDL_RWops not working

I am facing a very annoying issue with SDL2 + NDK framework (r9c). I have kept my .xml and .tmx file in assets folder. Now i am using SDL_RWops to read the xml and tmx file from assets directory and parsing using tinyxml lib. Source code for reading…
3
votes
1 answer

Exception when loading a tmx file into java using libGDX

When I recently tried to load a basic map I made in Tiled I get the exception: Unsupported encoding (XML) for TMX Layer Data I looked at the tutorial from badlogicgames website and did the same thing private TiledMap map; public void create() { …
Johan
  • 231
  • 4
  • 14
3
votes
1 answer

Cannot load progressive jpeg images in libgdx

Here's my source package com.effect.bio; import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; import com.badlogic.gdx.graphics.GL10; import com.badlogic.gdx.graphics.Mesh; import…
Lordking
  • 1,413
  • 1
  • 13
  • 31
3
votes
1 answer

Handling large maps with CCTMXLayer

I'm just getting things going in my game and I'm using CCTMXLayer for my tiled background. Everything is going fine when my map is 30x30 tiles, but my world is about 500x500 tiles. I would just use a map that size, but it lags terribly during…
InkGolem
  • 2,662
  • 1
  • 15
  • 22
3
votes
1 answer

AndEngine load TMX map on multiple devices

I have a problem with my game. I have a map 1280x1280px . It is consisted of 40x40 tiles, so 1 tile is 32x32 pixels. The thing is that I can't scale this map to the actual screen size of my device. Is there any way to do that? This is how I load the…
2
votes
1 answer

How to handle tile rotation in pytmx?

I am loading a map from Tiled with pytmx, but when i draw the tiles, they aren't rotated like in the editor. The code i'm using to draw the map is this: tiled_map = pytmx.util_pygame.load_pygame(f"mymap.tmx") tile_list = [] tile_group =…
Mattlau04
  • 78
  • 1
  • 9
2
votes
0 answers

Orthographic camera and sprite display issue

I am basing my code off of the tutorial found here I am attempting to make my sprite (a 32x32 pixel pikachu) move across the map when I press the corresponding keys in an effort to understand the orthographic camera and map renderer of libgdx. The…
Zoltorn
  • 171
  • 1
  • 2
  • 10
1
2 3
10 11