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

LibGDX -Tiled map not rendering

I created a map in tiled, here's what it is supposed tolook like: However, when I render it, I don't get any of the graphics, I only my background colour and black bars, where my objects are supposed to be: I don't understand what the problem is,…
Dani007
  • 141
  • 1
  • 8
1
vote
1 answer

How to create platforms from my tile platforms in Phaser 3 using matter physics?

I am using Tiled to create my levels in Phaser 3. I have my level, and the platforms load in fine, however, my player goes right through them. How do I add matter bodies to all of my platforms that are loaded? Code for my platforms: //Create…
1
vote
1 answer

Libgdx clickable object?

Can someone explain me how to detect a click on an object? I have already seen an answer to this question but it does not work. public class TiledMapActor extends Actor { private TiledMap tiledMap; private TiledMapTileLayer tiledLayer; …
1
vote
0 answers

My tiled map game keeps flickering on the edges of the tiles when the camera moves

There is an awful flickering that happens occasionally on my screen from top to bottom. It only happens when the camera moves around (which follows my player character). It does not matter where I am on the map for this to happen. If I stop moving…
Tipsi
  • 404
  • 4
  • 12
1
vote
0 answers

How to write over a Tiled .tmx file?

At the moment I have two different ways of loading tilemaps, one is by reading in a .tmx file exported from Tiled with the native libGDX class TmxMapLoader like so: tiledMap = new TmxMapLoader().load("tilemap/moontilemap.tmx"); And another way is by…
werner_b
  • 47
  • 2
  • 11
1
vote
1 answer

How Can I Use Tiled In Phaser 3, Using JSON Format?

For a while now, I've been trying to load a json tilemap from tiled into Phaser 3. I have tried many different things from online, but none of them seem to work. Can somebody help me?
Twickz
  • 29
  • 5
1
vote
1 answer

Tiled map editor cutting off edges of imported png

I started to write a small engine to render a 2d isometric map. A friend of mine made a small basic image of a train station to use example art for my engine. I tried to import the .png into tiled and create a tileset for it, to then use the…
Tremah
  • 103
  • 8
1
vote
0 answers

Loading and Displaying Tiled Map Files in Javafx

It's my first time working on a JavaFX project and I am trying to make a 2d game. I was experimenting around with Tiled to create the maps and such, but I couldn't figure out how to load the Tiled map files into the fx project. I searched around for…
1
vote
2 answers

Monogame Extended Tiled

I'm making an isometric city builder using Monogame Extended and Tiled. I've got everything set-up and now i need to somehow access the specific tiles so i can change them at runtime as the user clicks on a tile to build an object. The problem is, i…
1
vote
0 answers

retrieving MapObjects from TiledMap map object in libGDX

I'm trying to retrieve an object layer named "collisions", I'm using this code; MapObjects mapObjects = tiledMap.getLayers().get("collisions").getObjects(); But I get a null exception error. If I try to use .get(index) MapObjects mapObjects =…
1
vote
1 answer

libGDX Tiled Map hiding sprites that are out of viewport

I started to create a 2D game using libGDX and Tiled as map creator. I am using some sprites as Collection of Images in Tiled. The problem is that whenever I move to the right and some sprite's bottom left point is out of viewport it dissapears like…
Matej
  • 177
  • 2
  • 16
1
vote
0 answers

[Java][Libgdx] Isometric Tilemap Scaling and Coordinate Conversion

I have a 15x15 Isometric Tilemap consisting of 128 x 64 pixel tiles. Using an ExtendViewport and OrthogonalCamera I am able to render the map. However, it does not scale properly when resizing the window as the aspect ratio of the tiles becomes…
Morten Hauge
  • 137
  • 5
1
vote
1 answer

Remove old tileMap - SpriteKit - Objective C

this code loads a map1.tmx tileMap when player reaches the "door". When the player enters the door it loads a new map2.tmx file. Problem is when the new map2.tmx file is loaded, the old map1.tmx is running behind map.2.tmx and using all of map.1.tmx…
user3078406
  • 511
  • 1
  • 9
  • 26
1
vote
0 answers

How to show full tilemap using phaser?

I have created tilemap using Tiled software of pixel size 1200x1000. While rendering it using phaser I have set width equal to 500 and height equal to 400.After this only map of 500x400 area is loading and remaining part is missing. How can I show…
Ashish
  • 85
  • 1
  • 2
  • 14
1
vote
1 answer

pygame and tiled map collsions

I am trying to make the player sprite stop falling on the platform rect top. I have tried a lot of things over the past two days and I am more lost then I've ever been. Thank you so much. I am using tmx to load a tiled map. I add a Platform object…