PhotonChat

with PhotonChat I can have an option where the player clicks on a person's name to display a menu to call her for a match?
I need ideas, I've seen many games have this..

Answers

  • Hi @Valakinhas,

    Thank you for choosing Photon!
    I have moved this discussion to Photon Chat product category.

    Do not create duplicate topics.
    Try to ask precise questions.

    What you are asking for is broad.
    You need at least 2 UI components per player: Button with a Text that has the name of the player.
    You need a script to handle this: spawn and clean UI components.
    If you click on a button you start the invitation or challenge logic, like showing a new screen or modal window with more Buttons and Text.
    To send invitation or challenge to the other player, you need the UserId and choose a format and data structure for the message to send. Then use ChatClient.SendPrivate probably.
  • JohnTube said:

    Hi @Valakinhas,

    Thank you for choosing Photon!
    I have moved this discussion to Photon Chat product category.

    Do not create duplicate topics.
    Try to ask precise questions.

    What you are asking for is broad.
    You need at least 2 UI components per player: Button with a Text that has the name of the player.
    You need a script to handle this: spawn and clean UI components.
    If you click on a button you start the invitation or challenge logic, like showing a new screen or modal window with more Buttons and Text.
    To send invitation or challenge to the other player, you need the UserId and choose a format and data structure for the message to send. Then use ChatClient.SendPrivate probably.

    Thank you, I just wanted to know if the photon sent an invitation.
Sign In or Register to comment.