Simon Zach Posted April 27, 2020 Share Posted April 27, 2020 Hi Guys, lets say i have a tile 256x512. In the middle is a barrel. How to create a collision between player and barrel only? Not with the whole image. I made some research and found tiled: https://doc.mapeditor.org/en/stable/manual/editing-tilesets/#tile-collision-editor But to be honest i dont know how to use this property. Basically tiled just generate a collision zone according to your setting for example 100x100 in the given tiled. I am wondering how to implement this? I cant find in API anything with the collider zone size. I just found how to set a collision with the whole tile: https://photonstorm.github.io/phaser3-docs/Phaser.Tilemaps.StaticTilemapLayer.html#setCollision__anchor Link to comment Share on other sites More sharing options...
airtonix Posted July 11, 2020 Share Posted July 11, 2020 https://photonstorm.github.io/phaser3-docs/Phaser.Tilemaps.Tilemap.html#setCollisionFromCollisionGroup__anchor https://github.com/airtonix/phaser-tutorial-one/blob/4c49d552af39320c6832c9a8a053f42a06505c60/app/src/Scenes/MapScene.js#L165 Link to comment Share on other sites More sharing options...
Recommended Posts