Jump to content

body touching callback?


Recommended Posts

I'm pretty sure 


never cares to check to see what it's touching.  

In order to do this, you'll probably want to add all the sprites that you want to affect by touching to a group, then call 

game.physics.arcade.collide(sprite, group, function(sprite, collidedSpriteFromGroup) {
  //affect collidedSpriteFromGroup here

inside your update loop.

This example uses overlap instead of collide, but it's effectively the same thing:

Link to comment
Share on other sites


  • Recently Browsing   0 members

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