I am currently making my first 2D Top-Down survival horror game and it's going to be multiplayer and has in game payment too I was wondering how I could make the Multiplayer for a lobby system where the other player needs to enter the code to join other people game and how can i make the Google play payment in my shop for people to buy coins from shop using real money

    kuligs2 I am kind of lost about what you are saying, and also did you fully understand what I meant?

    codeisme it's going to be multiplayer
    I posted you resources that should help
    codeisme how I could make the Multiplayer for a lobby system
    Video + docs
    codeisme where the other player needs to enter the code to join other people
    This is a generic problem. Create a function that generates you a "code". When people create server, let the server announce that code to a main list server.
    When people browse for servers, serve a currently live lobbies from main server list.

    If youre that bald, you could look into adapting DP master. This is exactly what i did.

    I have gdmaster, https://github.com/kuligs2/gdmaster server that acts as masterlist server.
    You then create a game, and just send the correct packets to the masterlist to register server/lobbies that are online.. Example is in the other repo https://github.com/kuligs2/gdmaster-server-browser

    I havent tested this on the newer versions, hopefully the TCP UDP is not broken on the godot side..

      6 days later

      kuligs2 thanks for the help so much, appreciated I am kind of lost on networking on the right now, but I am doing my best to figure out what to make first and finish first

      7 days later

      kuligs2 I have made so far Using Noray However when the client connects to the server the lag is insane and not yet possible to play it from far away not sure why

        codeisme i dont know what norway is, but you need to write code that will approximate player positions to account for the lag. this is what other games use and is called "prediction" code.. not sure how to implement but one way maybe this could give you ideas

        I looked at that norway thing.. idk.. seems a bit too complex for a simple p2p.

        The method i described was more like server browser, where you open up a browser and see what lobbies are online and join.. this needs the masterlist server that keeps all the online server in a list and when people open up browser they get served the list and then they can join any of the server using the godots enet multiplayer peer connections ..

          a month later

          kuligs2 thanks for the help and sorry for the late reply
          I am currently working on making in game app purchase I was wondering do you know anything about it and if possible, on pc is much better to be honest.