Jump to content

multiplayer collision


Recommended Posts

  for (var i in Game.playerMap) {
      for (var e in Game.weaponMap) {
          game.physics.arcade.collide(Game.playerMap[i], Game.weaponMap[e].bullets,Game.colision(i), null, this);



Game.colision = function(id){


I want to make collisions and send them via socket to the server ... but for now I have a problem because it constantly sends me collisions without detecting between the shot and the enemy .. any ideas?


Link to comment
Share on other sites


  • Recently Browsing   0 members

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