Jump to content

Sprite vs Sprite Collision Problem


Recommended Posts

Test -- https://dl.dropboxusercontent.com/u/122460797/game3/question/index.html

As you can see in the test, the phyisics are working, since the physics debug square is appearing in both objects, (use the arrows to move), but when both sprites collide, nothing happens, (it should appear a log on the console), here the code that I use for colliding both sprites!

 this.game.physics.arcade.collide(this.mancha.sprite, this.player.sprite, function() {            console.log("Colliding");            this.player.animationDie();}, null, this);

I used this before and it worked, I don't know what is happening right now!


(If you want to read some of the code use Ctrl+U, and check it)


EDIT: The collision works when you collide on the left side... I dont know why! LOL!

Link to comment
Share on other sites


  • Recently Browsing   0 members

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