I made a two-layer tiled map and one of the layers has a collision property. how can I check the collision between the player and the layer containing the collision property
It can be handled like this
- added object points in TieldMap, adding properties to the object points.
- preparing the prefabricated body in advance in cocos.
- reading the coordinates and type information of the object point after loading the map and creating the prefabricated body dynamically.