Using the methods I've used, it destroys both players, or it destroys 1 player, but attaches their weapon to the remaining player.
How can I remove player 2 but not player 1?
Develop games in your browser. Powerful, performant & highly capable.
You need an instance variable like 'playerId' to distinguish player 1 from player 2. Or you can use the sprite UID.
Thanks, I've used Photon's ActorNr to achieve this