Jump to content

multiplayer collision


angeltrickz
 Share

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){
  //console.log(id);


  //Client.socket.emit('colision',"colision");
};

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?

colision.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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