Jump to content

P2 can't call a function when collision happen in a group


DisabledGamer7
 Share

Recommended Posts

Hello,

i have this problem i want to call a function when two body of the same group collide.

Here is my try:

        pedone.body.setCollisionGroup(pedoneCollisionGroup);        pedone.body.collides([pedoneCollisionGroup, playerCollisionGroup]);        pedone.body.createBodyCallback(pedoneCollisionGroup, pedonehitpedone, this);

the function pedonehitpedone is not triggered any suggestion? sorry i'm pretty new to phaser and coding...

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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