Problem with adding second player (Playmaker + PUN)

Options
Hi guys! Please help me, I have a problem with adding second player with custom parameters as name and new sprites.

Here is video with demonstrating my problem https://youtu.be/TDOAhAs9hd0

Please help me, I really tired with this... Thank you!

Comments

  • jeanfabre
    Options
    Hi,

    yes, you are consfused with the isMine meaning.

    Is Mine isn't good to let you know if you are player 1 or 2, it's only let you know that you are in contorl of it or if it's the representation of another player.

    in order, to check the player number, you need to use the playernumber extension. If you are in Pun classic, it's PlayerRoomIndexing script, if you are in pun 2, it's PlayerNumbering


    you can also, do it via the list of players in the room. and simply number them based on their index in the list. But that's less nice, especially when players can leave and join during the gameplay.


    Bye,

    Jean