How do I match players to room in Photon?

0 favourites
  • 3 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • I've built a multiplayer game, works well. On the login screen there's a checkbox. I'd like actors with checkbox to join rooms only with other actors who have checked the same checkbox. And opposite of course. Rooms should only have players with the same login checkbox state.

    I thought I could set properties of rooms on join but I can't find any examples of how this could work (Photon examples in Construct are rare it seems)

    Any help please?

  • Your in the right track. You will use for example room properties.

    Check out photon matchmaking Documentation doc.photonengine.com/realtime/current/lobby-and-matchmaking/matchmaking-and-lobby

    You could basically use unique room names, or set filters for the rooms.

    This may seem complicated at first because the documentation shows code but most photon c3 plugins have the features in event sheet, at least i know chadoris photon plugin has it.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks for your reply. I had read the photon docs multiple times, but the C# code examples don't translate easily to C3 to me. I see in the examples how custom room properties are set and listed in the lobby, as in below:

    The way I interpret that image is that on an actor first joining the room, the room properties "level" and "score" are set, then exposed in lobby, but I dont see how another actor joining the lobby or room can be made to check which rooms have that property before joining the room.

    I'm hoping that for my project, an actor creates a room, can then set the property "checked" on the room and lobby, then I can for subsequent actors, have a condition "if checkbox checked", join room with property "checked".

    Maybe I misunderstand whats going on.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)