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

How to manipulate a TiledMap in libGDX?

It looks like libGDX currently doesn't support changing the content of a TiledMap in game. I'd like to add / remove tiles [SOLVED] move objects [SOLVED] serialize changes [PARTLY SOLVED] Are there any third-party solutions addressing (at least…
Jens Piegsa
  • 7,399
  • 5
  • 58
  • 106
1
vote
1 answer

Scrolling large tile map using cocos2d-x gives me black tiles where there should be green tiles

I am loading 400x400 tile map created using Tiled software. One tile is 120 pixels for total of 48000x48000 pixels. I load like this regionMap->initWithTMXFile("background2.tmx"); mapLayer->addChild(regionMap, 0, enTagTileMap); …
Abdalla
  • 2,071
  • 2
  • 16
  • 27
1
vote
1 answer

Can I save a TiledMap in libGDX?

I just started to look into libGDX and I really enjoyed it. Loading a tile map I generated with an editor was really simple. But I have in mind to work on a game where the player can modify and extend the map. So here is my question: Is it somehow…
anhoppe
  • 4,287
  • 3
  • 46
  • 58
1
vote
1 answer

LibGDX TmxMapLoader cannot be resolved

I'm just starting out trying to work with .tmx files in LibGDX and I seem to be hitting a brick wall. In Eclipse, the following code: import com.badlogic.gdx.graphics.g2d.tiled.TiledMap; import…
Matt
  • 1,674
  • 2
  • 16
  • 34
1
vote
2 answers

converting isometric tile map coordinates to screen coordinates

I'm trying to convert isometric tile coordinates to screen coordinates. I seem to have problem especially with the Y coordinates, looks like the X part works just fine. here is what I got so far. // calculate screen coordinates from tile…
Benny Abramovici
  • 569
  • 1
  • 4
  • 20
1
vote
2 answers

Collision Detection Tmx Maps using libgdx (java)

So I'm trying to implement collision detection in my game and I have a layer in the tmx file called Collision. The LIBGDX onsite tutorials doesnt cover interaction with object layers and it was hard to figure out how to render the map in the first…
Exikle
  • 1,155
  • 2
  • 18
  • 42
1
vote
1 answer

Change TMX map dynamically

I'm trying to develop pacman for Android. I am using andengine with tmx map but I'm having a bit of difficulty in managing the collection of balls .. I initially tried to create an object for each ball, but 240 objects have halved my FPS. Then I…
Innet
  • 459
  • 3
  • 5
  • 18
1
vote
2 answers

Moving Platforms? Cocos2d and Tiled

I'm trying to make some moving tiles from a Tiled map editor tmx file. I have the moving tiles in their own layer, and I just want to simply have them move up, and then when they reach a certain y, move back down, and etc. I have been looking around…
JoeyMaru
  • 212
  • 1
  • 3
  • 10
1
vote
1 answer

How to animate a single tile in a TMX tile map?

I have searched around the interent and this question has been asked many times before, but either I could not understand the answer or it led to a dead end. Right now I have a standard TMX tile map set up in my cocos2d game that I made in Tiled.…
1
vote
1 answer

Swap a tileset during runtime? TMX Cocos2d-iPhone

I'm diving in and trying to learn cocos2d. Currently I'm trying to swap a tileset on button press. Example: Player is standing on grass, you press a button, and the tileset changes to a snow texture. I used tiled to create the map, and I was hoping…
JoeyMaru
  • 212
  • 1
  • 3
  • 10
1
vote
0 answers

TMX tiles not rendered when base outside camera range (Andengine)

I am using isometric TMX layers in Andengine to render a TMX map I created with "Tiled". The isometric TMX map uses 64x32px fields. Some tiles like walls are sized 64x128px. How can I force these walls to be rendered, even when their 64x32px base is…
UncleIstvan
  • 982
  • 9
  • 14
1
vote
2 answers

is it possible to pass a file uploaded using php to a javascript as input?

Im working on a tile based tmx editor and currently have file saving working. Currently it passes the tmx to a php file called endpoint that downloads the file. it can be viewed here www.jamesplanet.net/growtopiamapeditor/beta. What I need to know…
Jamesp1989
  • 325
  • 1
  • 4
  • 11
1
vote
0 answers

Encrypt TMX tilemaps?

I am using TMX tilemaps (Tiled) in an app I am creating. I was curious if anyone else has encrypted or changed their tilemaps in a way that a 'malicious' user wouldn't know that the file is a TMX map. I basically want my TMX to be hidden in a way…
user-44651
  • 3,924
  • 6
  • 41
  • 87
1
vote
1 answer

TiledMaps and real objects

I'm creating a Super Mario Bros. remake for the iPhone using Cocos2d. I'm having a hard time understanding how add real objects to a tiled map. I know that you can add an object-layer to the tiled map and set the position of it, but I'm not sure…
IluTov
  • 6,807
  • 6
  • 41
  • 103
1
vote
2 answers

andengine removing collectable objects like Sprites

im developing a game using andangine and the tmx and body2d extensions. i create Objects(sprites) like coins an specific positions while creating my map. i use a contactlistener to check if the player collides with a coin. how can i delete this…
blub
  • 21
  • 2