Handle the collision of sprites
Cocos
DECEMBER 25, 2022
I’m trying to handle the collision of two sprites, i added BoxCollider2D to the sprites. One sprite can jump (changing the y coordinate through animation), named "character ", the other is a static object, named “key”. code for the "character ". start () {. this.collider.on(Contact2DType.BEGIN_CONTACT,
Let's personalize your content