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
1
vote
1 answer

MapObjects Libgdx/Tiled Object properties?

I have a TMX file with a tiles image layer and also a Object Layer. I have it all imported into my libGDX project but cannot seem to get the Rectangle coords of each object through into my code. Please see below my Level class and the TMX file for…
I_Keep_Trying
  • 395
  • 3
  • 17
1
vote
2 answers

String base64 decoded un-gziped from little-endian 4-byte int to java int

I'm trying to implement TMX files in Android and I was hoping someone could help. Based on the TMX guide, in order to get the GID's I have to first base64 decode the string, then gunzip the resulting data if the compression attribute is set to…
Erik B
  • 2,810
  • 1
  • 34
  • 38
1
vote
1 answer

AndEngine change TMX Tiled Map Dynamically

I have read all the possible duplicates of this question and none gives me a full solution (the solution is in divided into the answers) so I decided to try and clear the things up. BTW StackOverflow told me: Not the answer you're looking for?…
Chaoz
  • 2,119
  • 1
  • 20
  • 39
1
vote
1 answer

TmxMapLoader doesn't understand floats

When i tryin to load a map with TmxMapLoader like that: TiledMap map = new TmxMapLoader().load("maps/TestMap.tmx"); i receive something like that: Exception in thread "LWJGL Application" java.lang.NumberFormatException: For input string: "15.1" at…
1
vote
1 answer

Java - LibGDX - Problems with the process of rendering a Tiled map

The problem I cannot seem to be able to get Tiled maps to render properly. I am using LibGDX as a library for loading the map (Release 1.6.0). Video demonstration I have created a video to show you the actual problem and make things easier by…
Lazini
  • 43
  • 9
1
vote
1 answer

How to decode Base64(uncompressed) TMX data element contents?

I have been trying to decode the Base64 contents of the data element in a TMX file with AS3. I am using mx.utils.Base64Decoder to decode the contents. Here is my 1x1 layer data without the encoding (I'm not sure if the encoded data is in XML…
user4723113
1
vote
1 answer

How to read object custom properties from a TMXObjectGroup?

When constructing a TMXTiledMap instance with Cocos2D-X, how can one access an object custom properties ? I can see that TMXObjectGroup provides a getObject method ValueMap getObject (const std::string &objectName) const but how do I access…
Antoine Lassauzay
  • 1,557
  • 11
  • 12
1
vote
1 answer

JSTileMap How to Convert polygon points

I am trying to turn a polygon object in my tiled map into a physics body. I can't figure out how to read the following line and turn it into 3 CGPoint values: I am using JSTileMap to parse the TMX map but…
TazmanNZL
  • 372
  • 3
  • 16
1
vote
1 answer

Why property ID's not match to correct tile ID's?

When i add properties to my tiles the properties get mapped to tileID - 1. I know a 0 means an empty tile on the . This confused me for quite some time until I noticed it. The obvious fix is to just increase the property by 1 when…
Madmenyo
  • 8,389
  • 7
  • 52
  • 99
1
vote
1 answer

TMX file is not shown properly using AndEngine

I have written a position locator application for indoor positioning. I've used TMX files to render my floor maps and load them with AndEngine. The problem is that the program does not show the TMX file properly. Here is the original file: and…
wise_fox
  • 56
  • 6
1
vote
2 answers

LibGDX + Eclipse | Can't load in .tmx () file

I started about a week ago with libGDX and I have a problem loading in a tmx. Tiled Map. As far as I see the game doesn't find the "test.tmx", but I don't know why! The path is correct as far as I can see. I use "Tiled" as the Map Editor. The Layer…
The_Blog
  • 155
  • 1
  • 12
1
vote
2 answers

Tilemap floor NOT display before background picture

I am having a little trouble doing something that is supposed to be very simple. I cannot get the floor of my tiles to display above a background picture. However I can get all my other game objects to show from my control pad, to my HUD to even…
Sleep Paralysis
  • 449
  • 7
  • 22
1
vote
0 answers

try to compiling project with qt creator and Tmx parser

i can't compile project with qt creator, this throw the next error :-1: error: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/../../../../lib/libtmxparser.a(TmxLayer.o): undefined reference to symbol 'uncompress' /usr/lib/libz.so:-1: error: error…
drog27
  • 95
  • 1
  • 10
1
vote
1 answer

Cocos2d: How Can I Programatically Set Gid Properties To A CCTMXTiledMap

After making my TMX based map in Tiled, I would like to programatically change certain properties of the tiles as my game progresses. This is the code I've tried but it doesn't work. But I include it here to demonstrate the logic of what I'm trying…
phpN00b
  • 138
  • 13
1
vote
0 answers

Cocos2D: Best process to make hd versions of tmx files?

According to a Cocos2D guide a copy of HD tmx files for every SD one you have, adding the indicator "-hd" at the end of the filename. The tilewidth, tileheight, spacing and margin properties all need to be twice as large in the HD verions. Finally,…
Chewie The Chorkie
  • 4,896
  • 9
  • 46
  • 90