I’m using cocos creator v2.4.9. All the documentation and tutorial for tile map is incomplete. It explains how to add .tmx file to creator.
It would be great if someone could point me towards a tutorial or project which has
collision detection between cocos node and objects in tile map.
Dynamic creation of a specific tile on tilemap click and so on.
If you have no specific reason to stay to creator V2, I suggest you to move to V3, not because you’ll find more tutorial (you will not) but because from now on V3 is the standard.
That said I’ve struggled for weeks to find some documentation on tile map (how to integrate to Tiled, to be more precise) on how to do collisions and things like that. There are one or two examples in the test repository but they are from v2 and the code is meh. To be honest you just can’t use Tiled and have collisions out of the box but I’m working on a plugin to fix this. In the wait you can find a good example on how to do collisions using Tiled here in this repository GitHub - theRenard/cocos-creator-tiled-collider-creator: Cocos Creator + Tiled and collisions, it is very minimal you should find yourself at home even if you were using V2.
I think the team will upgrade the documentation of tiledmap. but only in v3.x, v2 is legacy version ,won’t be changed anymore.
if your project is just in the startup phase, I strongly recommend you to use v3 instead.
Yeah sure, you have to try with different values, in my case 1 - 30 - 10 works well. If you want you can open an issue on my repository and share your Tiled map it will be interesting to test with other maps than mine.
You can also try to separate the platforms from the border, when you have something like a closing pattern (the border as rectangle), the algorithm tries to fill it and you have the error in 1st image