Jump to content

$10 Bounty: Debugging collisions with tile maps


lededje
 Share

Recommended Posts

I started playing around with Phaser but I consistently have problems with collisions.

 

I have a tilemap here https://github.com/lededje/game/blob/master/src/tilemaps/WorldTilemap.js

A sprite here https://github.com/lededje/game/blob/master/src/objects/Player.js

and the gamestate here https://github.com/lededje/game/blob/master/src/states/GameState.js

As far as I know everything is in order but still no collisions. Aside from the answer to my query (which would be great) I'd also like to ask how to go about debugging these things in the future. I checked the `collision` layer in the tilemap and it has a body but that was as far as I got. What other things should I check for to see why this wouldn't be working?

 

Thanks!

Link to comment
Share on other sites

Asked in the chat on this site and Skeptron and megmut sent me to https://software.intel.com/en-us/html5/hub/blogs/how-to-make-a-sidescroller-game-with-html5/ which looks pretty legit. They didn't want the reward, and said to donate it to the Phaser project; I'll add it to this months Patreon subscription.

Thanks Skeptron and megmug!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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