Saturday, December 28, 2024
HomeGame DevelopmentPrimary tutorial for tile map - Cocos Creator

Primary tutorial for tile map – Cocos Creator


I’m utilizing cocos creator v2.4.9. All of the documentation and tutorial for tile map is incomplete. It explains tips on how to add .tmx file to creator.
It might be nice if somebody may level me in the direction of a tutorial or undertaking which has

  1. collision detection between cocos node and objects in tile map.
  2. Dynamic creation of a selected tile on tilemap click on and so forth.

I’m making an attempt to make recreation much like this : [Make Your Own TileMap with Vanilla Javascript | by Tyler Conti | Geek Culture | Medium](https://Cat Crusador)


If in case you have no particular purpose to remain to creator V2, I counsel you to maneuver to V3, not since you’ll discover extra tutorial (you’ll not) however as a result of any longer V3 is the usual.

That stated I’ve struggled for weeks to search out some documentation on tile map (tips on how to combine to Tiled, to be extra exact) on tips on how to do collisions and issues like that. There are one or two examples within the take a look at repository however they’re from v2 and the code is meh. To be sincere you simply can’t use Tiled and have collisions out of the field however I’m engaged on a plugin to repair this. Within the wait you will discover a superb instance on tips on how to do collisions utilizing Tiled right here on this repository GitHub – theRenard/cocos-creator-tiled-collider-creator: Cocos Creator + Tiled and collisions, it is vitally minimal it’s best to end up at dwelling even in case you have been utilizing V2.

Good luck to your recreation :slight_smile:

I feel the workforce will improve the documentation of tiledmap. however solely in v3.x, v2 is legacy model ,gained’t be modified anymore.
in case your undertaking is simply within the startup section, I strongly suggest you to make use of v3 as a substitute.

Okay. Thanks for the reply

Thanks for the answer. Are you able to please point out which model of v3 is best to make use of as newest model might not be secure typically.

Will be sure to do that.

Thanks.

I’m, utilizing V3.6.2 proper now and is sees just about secure for my wants

I used the identical model.
Proper now I’m getting this subject.

That is the undertaking in tiled.

I’ve up to date much like your code

however the collision is ready to complete map
Hull Concavity = 1, neighborhoodRadius = 50 and clusterNeighborsPoints = 10

Hull Concavity = 1, neighborhoodRadius = 40 and clusterNeighborsPoints = 10

I’m unsure tips on how to set the Hull Concavity, neighborhoodRadius and clusterNeighborsPoints.

Are you able to please information me a little bit right here?

Thanks

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments