Jump to content

When using setCollisionByExclusion, 0 index is set as collideable, is there a way to make the behavior same as it was in Phaser2?


Recommended Posts

Her is an example based on a Phaser 2 example, 0 index is set as colliding: 

Her is the tiled json file: https://examples.phaser.io/assets/games/starstruck/level1.json

Phaser 2 example where empty (index 0 in tiled json) is not collideable: https://phaser.io/examples/v2/games/starstruck

What is the easiest way to fix this in phaser 3? Setting 0 in setCollisionByExclusion method does not exclude it from collision. 



Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...