Questions tagged [tmxtiledmap]
18 questions
2
votes
1 answer
how to maintain the appearance of the tiled map when I change the resolution in libGDX
i have created a test tiled map for a 2D game that i am programming. And everything is fine with!, but when i change the resolution the camera doesn´t fit the screen correctly.
I have a player sprite and the Tile map, and I use a resolution of…

Luis Bermúdez
- 592
- 11
- 25
2
votes
1 answer
Cocos2dx 3.17 TileMap Basic Sample - wrong tilecord position, object layer itmes position returned also wrong
I tried cocos2d TileMap sample from here, In this tilecord returned for given player position is wrong.
Here is code
Point HelloWorld::tileCoordForPosition(Point position)
{
int x = position.x / mTileMap->getTileSize().width;
int y =…

Guru
- 21,652
- 10
- 63
- 102
1
vote
2 answers
bevy_ecs_tilemap unable to load tiled .tsx files
Background
I am working on a 2D game with Bevy. I want to use tilesets with tiled. I have found the crate bevy_ecs_tilemap and I looks promising for an easy solution. I have a file structure like this and want to load world.tmx
tilesets
├──…

Jove
- 105
- 4
1
vote
1 answer
Phaser not loading my tilemap, only showing black screen
I am trying to load a tilemap created in tiled map editor. I have exported it as a json file and have it in an assets folder within the public folder, along with my tilesheet. All that is being displayed on the canvas is black. I have tried to…

Chris
- 76
- 1
- 7
1
vote
1 answer
Issues building .tmx file in Content Pipeline with MonoGame.Extended
I want to build a Tilemap in the Content Pipeline with MonoGame.Extendend but i get a exception.
MonoGame.Extended : 3.8.0
The Tileset has been embedded (Marked checkbox before create) and the reference for Content.mgcb is set.
I use Visual Studio…

Techobert
- 11
- 1
1
vote
1 answer
Pygame keyError
I have run into a big road block as my code is not updating points and health when player collides with coins or falls in pits. I have successfully created my own map and assigned all properties. The id of my gold coin is 163. I have spent a week…

Obisi7
- 485
- 1
- 5
- 18
1
vote
0 answers
LibGdx MapObjects empty on valid tilemap
I am currently using libgdx and it's box2d extension to make an open world platformer. I wanted to render a world from a tmx tilemap, and add physics from it. The tilemap renders fine (using OrthogonalTiledMapRenderer), but when I tried to add…

TKDKid1000
- 33
- 1
- 5
1
vote
1 answer
Animated objects launch at a precise time with pytmx, pygame
I am in troubles, I am trying to make doors opening in my game.
I am using pygame, and pytmx, I have built a Level made with Rooms, and in each Room I have a Renderer using pytmx, what I want to achieve is for exemple on level 0 the player has to…

SnK
- 58
- 1
- 6
1
vote
1 answer
Cocos2d-x tilmap black screen
I am a beginner with cocos2d-x and try to use it with Tiled to create maps.
I created a TileMap, and here is my code, in LevelOne::init() in level_one.cpp :
if (!CCLayer::init())
{
return false;
}
_tileMap = new…

LeopoldBriand-bot
- 55
- 6
1
vote
2 answers
Pygame TMX file not loading
I have been working on a KidsCanCode project in pygame(https://www.youtube.com/watch?v=3UxnelT9aCo&list=PLsk-HSGFjnaGQq7ybM8Lgkh5EMxUWPm2i) and I've finished everything. Now I'm trying to create levels by loading two different tiled formats, but…

Max
- 21
- 8
0
votes
1 answer
Incorrect loading of CSV Tilemap (tmx file) using Cocos2d-x v4 C++
I am attempting to load a 2d tiled map (.tmx + .tms files) generated from Tiled Map Editor into Cocos2d-x version 4. I am building the project using Visual Studios 2022 -- Win32
I'm trying to make the scene as simple as possible, and the tiled map…

Ilan Keshet
- 514
- 5
- 19
0
votes
0 answers
Tile map (.tmx) rendering in the corner of the screen in LibGDX
I'm currently developing a game with my team on LibGDX and we're using a .tmx tile map. We're trying to get it to render, and it does render, but oddly in the corner of the screen instead of in the middle of the screen. As in, the bottom left corner…

mcp662
- 1
0
votes
0 answers
Moving a tiled surface in a kivy widget
I'm building a simple game in kivy where I move a player on a map and the map moves consequently to keep the player at the center of the screen.
But, the problem is that the map is composed by individual tiles with individual properties. How can I…

Andrea Valsesia
- 17
- 5
0
votes
1 answer
How to remove multiple cells from tiled map editor when collision with object that spans over multiple tiles
I am creating a brick breaker game using libgdx, using the TiledMapEditor to create my levels. i have a layer for my brick graphics and a layer for my brick objects. i have collision working with my brick objects, i have the tile in the brick…

Poehnell
- 27
- 4
0
votes
1 answer
Loading tile map into libgdx in android
I am a beginner to Tiled. I tried to load an tmx file in android but mine doesn't work. But when I try to load someone else's tmx file, it works. I think there's an error in my tmx file, but all I did was downloading the tmx file from Tiled. Is it…

kim
- 9
- 1