remote players bullet collision

Updated on March 25, 2017 in [A] 2D
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on March 25, 2017

Hello! I have my 2d multiplayer game, and I’m giving to each player that spawns a remoteLayer or localLayer, based on isLocalPlayer. The bullets that are spawned by their guns are set to ignore the localPlayer collision
so that u won’t shoot yourself, the issue is that when I shoot, I can see the bullet hitting my enemy, but on the other client my enemy (who is localPlayer on his machine), will see the bullets passing him through or hitting the guy who shot them…

Any suggestion on how to handle these networked collisions??

  • Liked by