The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

How to invite friends to play together?

ActiveDream
2018-10-22 05:41:17

Hi everyone,

I managed to be able to get a list of friends with PlayFab. But my matchmaking and multiplayer gameplay is handled with Photon. How to know whether that friend is online and able to join party of 3 to play together? Also, after the party of 3 people with friends created, since the game will be a 3v3 arena, how to create a room that will allow another 3 people to join?

Thank you for your help and support
Best Regards,

Active Dream

Comments

Rivax95
2018-12-10 13:53:02

i have tihs problem, any solution ?

JohnTube
2018-12-10 21:38:10

Hi @ActiveDream,

Thank you for choosing Photon!

How to know whether that friend is online able to join party of 3 to play together?
Use FindFriends feature as explained here can tell you if a user is online and whether he is in a room or not and which room.

Besides, you need a way to exchange invitations/challenges messages to games/parties/friendship etc.
In general, teams, party and friends matchmaking require an external service (not PUN/Photon Realtime) where players can communicate with each other "directly all the time" without the need to be joined to the same room. Examples of services you could use: Photon Chat, facebook or a custom messaging/polling system based on PlayFab's CloudScript.

Also, after the party of 3 people with friends created, since the game will be a 3v3 arena, how to create a room that will allow another 3 people to join?
You can have "staging rooms" where friends or teams or party members join first before moving to another room to face the opposing team or other players. You could also change MaxPlayers and some other room properties post room creation.

You can find some examples here or by searching on the forum.

Back to top