Jump to content

Phaser check collision between Group and Sprite, then return Group member that collided.


DavidStampher
 Share

Recommended Posts

I am using this code to detect collision between a Group and a Sprite.

game.physics.arcade.collide(group,sprite)

It works, but I need to know which member of the group collided with the sprite...is there a parameter of the collide function that I can use to achieve this, and store the member of the group that collided with the sprite in a variable?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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