Closed dave-kennedy closed 7 years ago
Thanks for submitting an issue!
I'm able to replicate this too, without setting the colliding tile index range on the Phaser.Tilemap
object.
This should either be mentioned in the readme or silently handled in the plugin somehow, if possible.
For now, placing this line of code:
this.map.setCollisionBetween(513, 551, true, 'Tile Layer 2');
Before this line in your fourth level state:
Should hopefully fix your issue.
If not, I may be using the wrong numbers!
That did the trick. Thanks!
I'm not sure what I did wrong here, but my player sprite falls straight through the floor. When I enable debugging, it appears the bodies are only being created for some tiles and not others.
I've uploaded the code to https://github.com/dave-kennedy/Platformer.