How choose same player level for multiplayer ?

0 favourites
  • 8 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • hi, i', trying for game like clash royal.

    in clash royal with 2 player multiplayer realtime game, you fight with a player who the player has same level with you.

    for example : you have 2043 xp , and another player has some xp between 2000 - 2060 .

    so i can code php and mysql for server side , but i need some idea for connect 2 players .

    any help please?

    best regards ( sorry for English)

  • maybe , i mean how connect 2 player manually ? (: but imaging 100 player send request for same time and i need connect them manually.

  • hi again, any help? why nobody help in multiplayer problem?!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • up! i need answer, please.

  • lennaert can you help ? best regards,

  • Disclaimer: I haven't tried this myself, so no guarantee it will work.

    You need a matchmaking server. It will be a default lobby that everyone connects to. The peers will report their XP/rank, then the host, through logic that you set up, will assign the matched pair of players a unique room. Your players, once they have received their room ID, will disconnect from the lobby and then connect to the unique room that they both got assigned by the matchmaking host.

  • Suggestion:

    Use xp ranges, like 0 to 1000 and 2000 to 3000 etc (or a range you like, and process this in your multilayer room name. I.e. range1k, range2k, range3k etc

    Then, after connecting and searching for available rooms, show or join rooms which has your range in the room name.

    Example:

    Player is in the 2k range xp, upon start it sets the room name to range2k and auto joins it.

    If this happens to all players who are in the 2k range, they will auto join the first available room which starts with range 2k.

    Voila .. No extra server needed

    Ps if a player levels up after a played game simply update the room name to the new range.

    I did a similair thing for countries based room selection where people wanted to join people from the same country. It works.

  • thank you . i try it.

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