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
2
votes
2 answers

Separate timer for each animated tile with libgdx and Tiled

Sorry for the poorly worded question, but that's the best I could think of. So, I've got a small problem in my game project with libGDX (Java, desktop) and a tiled map created with Tiled. With the new animated tile editor feature in Tiled, I created…
Canard
  • 67
  • 1
  • 9
2
votes
3 answers

Tiled map to scene2d actor on multiple layers

The answer here was exactly what I was looking for, a nice way to turn tiles into actors. LibGDX: How to make tiled map tiles clickable? I have a problem with this though, and that is that it only seems to work on one layer. From the code it seems…
sistergodiva
  • 23
  • 1
  • 3
2
votes
0 answers

Libgdx Box2d Drawing

I'm trying to render an sprite with his body but it always displays bigger and moved to the left and bottom. I'm using a OrthogonalTiledMapRenderer with an scale of 1/(PPM*3) where PPM is 100. The tiles and the body i created gets drawn where i want…
troyz
  • 1,345
  • 2
  • 11
  • 19
2
votes
1 answer

using canvas engine and tiled map editor get "Uncaught TypeError: Cannot read property 'firstgid' of undefined"

I'm programming game with javascript and HTML5 canvas and i have one error when drawing map. I use the Tiled class provide by canvasEngine framework and I get this error : Uncaught TypeError: Cannot read property 'firstgid' of undefined in…
2
votes
2 answers

Libgdx box2d Tiled map

I have a problem: I am programming a tiled map game with Box2D but the proble is, that if I press for example D to go forward with my character, a vector 2 makes me going faster and faster so I did this: if (Gdx.input.isKeyJustPressed(Input.Keys.W)…
Tobls
  • 67
  • 7
2
votes
0 answers

Libgdx game Runs perfect in Eclipse, doesn't even open when Exported

I am creating a Game in java, using LibGdx. It worked perfectly fine when compiled until I added Layers to my Tiled Map. It still runs fine when ran from Eclipse but when i compile it into a runnable jar, it does not even open. I commented out…
Nyfaria
  • 43
  • 7
2
votes
2 answers

(LIBGDX) Rendering Sprite (character) hides a Wall

I'm making a game with Libgdx and I'm using isometric perspective. I have a problem when rendering my character because the map is loaded from Tiled Map Editor and character is a Sprite. If I have a wall on layer 0 of the map, when drawing the wall…
2
votes
1 answer

LibGDX - What is the different between batch.begin(); and renderer.getBatch().begin();?

I am learning LibGDX using Tiled Map. I came across the following two render methods. The first one is simple one that I normally use. However, I don't understand why we need the second one. Can I use batch.begin(); in method2 as well. Thanks Method…
user1232250
  • 329
  • 3
  • 19
2
votes
1 answer

Is it wise to export a Tiled layer into 1 big png file to save memory?

I just made the background layer in Tiled for my map for Sprite Kit. The main layer is the background layer where the grass, dirt, water & the lot is drawn - this what the player character "walks on". This map is consisted of tiles that are 16x16…
Krekin
  • 1,516
  • 1
  • 13
  • 24
2
votes
1 answer

How do I display a tiled map in Pygame using Tiled and pytmx?

I'm aware there is a similar question but the answers were not specific enough to be useful in my case. I am trying to create a program that can display a tiled map created in Tiled and uploaded into Pygame using pytmx. The only issue I'm having is…
2
votes
1 answer

Tiled Map Editor: Make isometric tiles connect seamlessly/remove staircase effect

I am using the TiledMap editor, with a set of Tiles I got from opengameart, I am using an isometric map, yet I just can't get these tiles to connect without this "stair-stepped" effect. Any help is appreciated.
2
votes
1 answer

LibGdx Tiled Map with proper dimensions given screen size

I have set up my Tiled Map likes so: level = new Level("level_1.tmx"); renderer = new OrthogonalTiledMapRenderer(level.getMap(), UNIT_SCALE); spriteBatch = renderer.getBatch(); debugRenderer = new ShapeRenderer(); camera = new…
waylonion
  • 6,866
  • 8
  • 51
  • 92
2
votes
1 answer

Framework for html5/canvas game based on hexagonal grid

I am developing html5 game based on hexagonal grid. After some investigation I have used : MelonJS + Tiled + this tricky thing. Everything seems good in this combination, until I started to think about dynamic showing some hexagons, that my player…
Maksym
  • 4,434
  • 4
  • 27
  • 46
2
votes
2 answers

LibGDX: How to get the same coordinates in tiled map for tile with and without zoom

I am a beginner with LibGDX. I am trying to create an android game based fixed size tiled map (33x21 tiles). Tiles I am using are 32x32px. So far I managed to load the map created with Tiled and add touch gestures like zoom in/out and panning. The…
Dick Tracy
  • 57
  • 1
  • 4
2
votes
1 answer

Create Race Track in Sprite Kit

I have been learning and creating using Sprite Kits 2D games since its release with ios7. I now have an idea of creating a fully loaded top down racing game but I am stuck on the single question as to what is the best approach to creating the…
Mike Simz
  • 3,976
  • 4
  • 26
  • 43