Jump to content

Phaser 3 Tiled setCollisionByProperty not working


MagNus_Chrom
 Share

Recommended Posts

I am new to integrating tiled into phaser. Watched a bunch of tutorials and read a lot and followed instructions but my project just doesn't work the way it should...

In Tiled, I added a Boolean property to each tile for collides: true. 

In phaser set it to setCollisionByProperty and.... no collision happens. I added debugging code, shows that there are tiles to collide with, my submarine is debugged and is showing a body, I have put my layer and sub on the same layer... still no collision. I've updated to the most recent versions of both Phaser 3 and Tiled... still no love.

My sub should not cross into the islands area. My sub starts at my starting point placed in the objects layer, so I got that going for me. 

 

Any help would be greatly appreciated as this issue is destroying my productivity on this project. 

 

MapExplore.js

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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