Mar-13-2019, 03:47 PM
I am trying to create a 2D puzzle platformer, using Tiled as the map creation tool.
All I want to figure out is how to import a map made in Tiled, and then how to set each tile to an object (ex: a wall, enemy, the player, a powerup etc.)
I have been following this tutorial for movement
I got to the point where I had a moving cube that could jump and not walk off of the screen. I then learned on my own how to import an image and make it the cube instead of a colored rectangle.
I then made my own tileset, and used it in Tiled to create the level I wanted. I put in walls, a player, and an enemy.
Afterwards I found this tutorial, which I am now trying to piece together how it imports the map and its various layers using the module pytmx in conjunction with pygame.
Does anyone here know the best way to go about this?
All I want to figure out is how to import a map made in Tiled, and then how to set each tile to an object (ex: a wall, enemy, the player, a powerup etc.)
I have been following this tutorial for movement
I got to the point where I had a moving cube that could jump and not walk off of the screen. I then learned on my own how to import an image and make it the cube instead of a colored rectangle.
I then made my own tileset, and used it in Tiled to create the level I wanted. I put in walls, a player, and an enemy.
Afterwards I found this tutorial, which I am now trying to piece together how it imports the map and its various layers using the module pytmx in conjunction with pygame.
Does anyone here know the best way to go about this?