I am struggling with the implementation of a collision detection system through tiledmap. I have a 2d "Pokemon game" that displays a tile map. In particular, I have a “collision” layer in my .tmx file with a tile file that I want to interact with the player and other objects. My question is how to associate a sprite (extension of the Sprite class) with a “collision” layer with tiles and cause a collision between them. Any advice is appreciated.
source share