Hi,
So I am trying to get my characters to respect to the tiledmap I created, and detect the collision when it happens.
I thought I could make a collision layer, mark the tiles I want for collision and then read them in the code. I don’t know if this is doable or a good way of doing it, but that is how I thought I will achieve this if I can.
I created a map with Tiled software. Here is my map and the pictures I used for it: https://dl.dropboxusercontent.com/u/19432607/TiledMap.zip
I thought I could read the tile info from map.tmx and get the collision tile with its id. But it is encoded with Base64 So, that failed.
I tried to get all of the tiles, then list their ids etc. But that failed too as the ids are something like this: com.badlogic.gdx.maps.tiled.tiles.StaticTiledMapTile@69acd952
I realized that I could use XML to create map.tmx. I did it and my collision tile has an id: 121. But I cannot use it. Because libgdx does not support XML with maps, or I couldn’t get it to do so.
What is the direction I should be heading now?