This question was
closed Jul 07, 2018 at 09:02 PM by
DoodleDudeStudios for the following reason:
Question is off-topic or not relevant
Question by
DoodleDudeStudios · Jul 06, 2018 at 06:13 AM ·
2d2d-platformerplayers
Dont Remove Player 2 On Accident.
Hello, I am making a local co-op game to play with 2 people and it is structured like a metroidvainia. Right now I am running into an issue where my code will remove the second player because player 2 uses the same code. I was wondering how I can make sure the game will keep both player one and player 2 and remove the duplicates of player one and two. Thank you.
Comment
Answer by tormentoarmagedoom · Jul 05, 2018 at 07:12 AM
Good day.
I supose is then a muktiplayer with networking.
You have the hasAuthority value to know if the instnce is the "owner"of the object
Bye!