Jump to content

Check for collision within a group


Recommended Posts

Hi, all - I'm using Typescript and Phaser 2.1.1 Arcade physics to check for collisions within a single group. I've seen that I should be using 

update() {    game.physics.arcade.collide(group);}

but I can't seem to pass a single parameter to the collide() function. If I enter the above, I just get 

Error 4 Could not select overload for 'call' expression.
Error 3 Supplied parameters do not match any signature of call target.
Again, I'm using Typescript, if that makes any difference. Any suggestions? Thanks!
Link to comment
Share on other sites


  • Recently Browsing   0 members

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