Questions tagged [tiled]

Tiled is a general purpose tile-based game map editor under GPL license. It supports several map formats (XML, JSON) and multiple platforms.

Tiled is a general purpose tile-based game map editor under GPL license. It supports several map formats (XML, JSON) and multiple platforms.

390 questions
3
votes
1 answer

Tiled object position doesn't match MonoGame position

I have an issue when importing Tiled maps with Object layers into a MonoGame project. Everything is pretty much working great; I can import the Tiled map into the project and render the map with the use of MonoGame.Extended. My issue starts when I…
3
votes
1 answer

HTML5 Tiled Map is saving all tiles as the last tile in the tile set

I have been working on a HTML5 Game Engine and I have had a tiled map loader working perfectly for a few months. I have since rewritten my engine and everything works as expected except the tiled map loader. The map loads and then loads the tile set…
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

LibGDX: Parallax effect with tiled maps

Need to make parallax effect in the game with LibGDX and tiled map. Background should move with different speed then foreground. In the docs https://github.com/libgdx/libgdx/wiki/Tile-maps said: By rendering each layer separately and modifying the…
Lugaru
  • 1,430
  • 3
  • 25
  • 38
3
votes
0 answers

PyTMX Tiled map collision - Pygame

I am trying to create a game map in pygame with Tiled but I don't know how to setup the collision for every tile. I successfully displayed the map on the screen, but how to verify the collisions? Here is the code: import pytmx import…
user193464
  • 380
  • 1
  • 6
  • 25
3
votes
2 answers

LibGDX Tiled: Moving camera causes tiles to stutter/blur/wave

I've tried searching all over for the solution to this problem and have had no luck; although I have tried various suggestions which I will detail below along with the issue. I've created a very small and simple sample project to test rendering a…
Balkanko
  • 31
  • 2
3
votes
1 answer

LibGDX Box2D Tiled map artifacts

I have a problem with rendering tiled map in LibGDX. When I move the camera appear artifacts. This is my tileset with margin and spacing (fragment): tileset When I move the camera appear artifacts: artifacts And here is my rendering world…
Forest
  • 33
  • 5
3
votes
3 answers

Libgdx AtlasTmxMapLoader with multiple tilsets

I am working on a Libgdx game which loads Tiled maps. The current map I am working on makes use of 2 tilesets, one for shadow/light and another for terrain and buildings. The general process I do, that has been working fine, is that I receive the…
Arbel
  • 425
  • 8
  • 26
3
votes
2 answers

Collision Detection with Java, Slick2D and Tiled Map Editor

I've been stuck on collision detection and how to handle it for a VERY long time. I need help understanding how to use collision detection with Tiled map editor. I have the TMX file parsed and displayed with a player, camera and keyboard movement.…
Phippre
  • 53
  • 1
  • 8
3
votes
2 answers

libGDX load tiled map from string

I currenly load my tiled map from assets folder. TiledMap tileMap = new TmxMapLoader().load("assets/level1.tmx"); But I want to make something like level of the day. Is it possible to load a tiled map from a string? A string would be the content of…
Boldijar Paul
  • 5,405
  • 9
  • 46
  • 94
3
votes
1 answer

Sprite Kit render performance using 16x16 tiles vs 32x32 tiles?

I've made a Tiled game. Right now I'm stress testing my phone's capabilities by increasing amount of nodes in the scene. There's physics based stuff, AI movement, Day & Night system, particles popping out here & there & plenty of other stuff going…
Krekin
  • 1,516
  • 1
  • 13
  • 24
3
votes
2 answers

SpriteKit tilemaps collision with curved or sloped floor tiles

I am planning a platforming game for iOS using SpriteKit and Swift. I did some research on how to handle collisions of the player sprite and stumbled upon this…
snorge
  • 114
  • 9
3
votes
0 answers

Is there a way to repeat a tiled map with libgdx

Is there a built in way to make libgdx map renderer repeat the map at the edges? I.e., at the very far edge, start drawing the leftmostpart all over again, and so on. thanks in advance
Brimstedt
  • 3,020
  • 22
  • 32
3
votes
2 answers

libGDX: How to implement a smooth tile / grid based game character movement?

In fear of reinventing the wheel, I wonder: What is the best approach to implement a smooth grid based game character movement on a top-down Tiled (2D) map with libGDX? The character should keep moving smoothly between tiles as long as an arrow key…
Jens Piegsa
  • 7,399
  • 5
  • 58
  • 106
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
1
2
3
25 26