Monk_i Posted December 14, 2016 Share Posted December 14, 2016 Hello, I'm working on a simple tile game using the Phaser framework (new to Phaser), but unfortunately I've stumbled upon a "bug" when using the Arcade collision method. I want all the tiles to stack on top of each other, but the tiles on top always go through the tiles below them. I've tried to come up with a solution, but I'm really stuck. I hope someone can help me. I've put my script on codepen, so you can test it there and see what I mean : Link to comment Share on other sites More sharing options...
samme Posted December 15, 2016 Share Posted December 15, 2016 Hi, this is tricky, see http://phaser.io/sandbox/TJKQHaxN/play Monk_i 1 Link to comment Share on other sites More sharing options...
samme Posted December 15, 2016 Share Posted December 15, 2016 Do you need "true" physics or just a falling effect? You may find Tweens work better if you just want the effect. You can try to "freeze" bodies once they are moving slowly and colliding on the bottom edge. A smaller bounce, a larger velocity threshold, and more-frequent updates are more likely to keep them separated. Monk_i 1 Link to comment Share on other sites More sharing options...
Monk_i Posted December 16, 2016 Author Share Posted December 16, 2016 Thanks for your help. I just need the falling effect, so tweens it is. Link to comment Share on other sites More sharing options...
Recommended Posts