Todi Posted November 5, 2015 Share Posted November 5, 2015 Guys, I fixed my code that was causing error, but, the collision between Sprite and TileSprite doesn't work yet. Here is the code:Game.prototype.update = function () { this.game.physics.arcade.collide(this._player, this._ground);};Anyone know what is going on? Thank you all! Link to comment Share on other sites More sharing options...
Todi Posted November 6, 2015 Author Share Posted November 6, 2015 For those who don't found it yet, follow the code that I was forgetful:// box collision sizethis.body.setSize(width, height - 480, x, 480);Set the size of your TileSprite and it will collide! Sorry the double post! Link to comment Share on other sites More sharing options...
Recommended Posts