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
0
votes
1 answer

How to search for prop elements in TMX with Nokogiri

I have a TMX translation memory file that I need to parse to be able to import it into a new DB. I'm using Ruby + Nokogiri. This is the TMX (xml) structure:
Sebastjan Hribar
  • 396
  • 3
  • 13
0
votes
1 answer

No EntityFactory has a method annotated @Spawns()

I have trouble with testing the TMX feature. I wanted to load a simple TMX file into my sample FXGL App (JavaFX Game Library). Any ideas? Error: 10:52:31.888 [FXGL Background Thread 4 ] WARN TMXLevelLoader - TiledMap generated from 1.7.2.…
Arquillian
  • 125
  • 2
  • 16
0
votes
1 answer

Rendering and refreshing tmx file map with python and pytmx

I am using pytmx to load my map with pygame, but some items needs to be set as sprites and displayed above the surface, so the layering doesn't stay, I will show you 2 examples, one with the player displaying on top of decorations (where the point…
SnK
  • 58
  • 1
  • 6
0
votes
1 answer

rapidxml weird parsing for one specific node

I've been looking for hours a solution to my (simple ?) problem but I cannot find anyone who encountered this. I'm using latest version of rapidxml(1.13). I'm currently trying to create a tile-based engine and I need to read tmx file. I'm been using…
max a
  • 1
0
votes
0 answers

tmx Map only loads if I resize the window libgdx

Ok I can't figure this out for the life of me. I have a game class public class MyKoalabr8 extends Game { @Override public void create () { setScreen(new MainMenuScreen(this)); } } this sets the mainmenuscreen public class…
ThatPurpleGuy
  • 426
  • 7
  • 20
0
votes
2 answers

Tiled / pytmx - Problem with getting same gid for same image in different maps

I always getting gid == 1 for first element in maps, even with same tileset. Saved file "example.tmx" have value encoded with CVS. I open file with txt editor and it's look like this: 24,24,19,24,24,22,19,23,18,23,2 ... This…
Maucin
  • 1
0
votes
1 answer

libgdx: tiled map renders incorrectly when using multiple tilesets

I've been starting to work with libGDX to load tmx maps made using Tiled and have a weird issue where as soon as I use a second tileset my program stops displaying the map correctly, either showing nothing at all or using totally different tiles.…
Nathaniel
  • 3
  • 1
0
votes
0 answers

How to import and analyse a large TMX file in Python

My ultimate goal is to make a script to return a few pair of sentences from a TMX (Translation Memory Exchange) file. The file is from http://opus.nlpl.eu/OpenSubtitles2018.php and is about 2.1G. I have tried reading it using the tmxfile…
Areza
  • 5,623
  • 7
  • 48
  • 79
0
votes
1 answer

How to account for spacing between tiles in a tile sheet

My tile-sheet has tiles that are 64x64, however between each tile there is a 10px gap and i need to account for that gap when setting the texture rectangle in the image in order to draw that tile I tried simply adding the space upon setting the…
Wiz
  • 15
  • 4
0
votes
1 answer

How do I fix an xstring exception with tmxparser? SFML/C++

I currently I have a problem that when I run my code, it stops at an exception at line 3467 in the xstring system file. Here is a few screenshots of it: . I figured it had to do something to do with loading the file or the file is corrupted.…
0
votes
0 answers

pygame.error: Couldn't open ../Documents/Map1.png

I'm trying to load a tmx map but an error keeps popping out. This line causes the error: self.tilemap = = tmx.load('map1.tmx', screen.get_size()) import pygame import tmx class Game(object): def main(self, screen): clock =…
DisplayName
  • 89
  • 1
  • 2
  • 12
0
votes
1 answer

I want to get the tile labels from a Tiled (TMX) file using pytmx, i cannot find the syntax

I can get the image path, and also the ID of the tile however i cannot seem to get the "Type" or the tile or any other properties other than: The tile ID, Width, Height and Image My code example: tmxdata =…
Richard
  • 135
  • 2
  • 11
0
votes
1 answer

Get a .tmx file from its .json

I've been using Tiled to create .tmx maps for one of my projects, maps that I export to JSON before using with Phaser.js. Problem is, a few months ago I mistakenly deleted the .tmx file for the game first map. It's still working fine but now I can't…
yurden
  • 152
  • 1
  • 16
0
votes
1 answer

Cannot render .tmx map using OrthogonalTiledMapRenderer (Android)

I am having a hard time getting a map to display correctly on my android app using LibGdx. First up here is my code: public class PlayState extends State { private LittleMan littleMan; private TiledMap map; OrthogonalTiledMapRenderer…
Adrien Pecher
  • 335
  • 1
  • 7
  • 14
0
votes
1 answer

pygame Error in keeping score

I'm making a platform game for class and I used this video as my guide. However, I'm having trouble keeping score. Here is my code. The problem is that once I hit a coin, instead of adding only 1 point, it increments continuously. Please help!
Rose
  • 25
  • 6