Search Unity

Need help

Discussion in 'Multiplayer' started by TLummen, Sep 27, 2022.

  1. TLummen

    TLummen

    Joined:
    Jan 15, 2019
    Posts:
    15
    Looking for someone to help me get started converting my offline trivia game to online multiplayer.. can't find and tutorials on adding multiplayer to trivia games
     
  2. toddkc

    toddkc

    Joined:
    Nov 20, 2016
    Posts:
    207
    What's your budget?
     
  3. TLummen

    TLummen

    Joined:
    Jan 15, 2019
    Posts:
    15
    I currently don't have a budget as my game hasn't grown yet (less then 20 downloads). I'm just looking for someone to help me get started as all the multiplayer tutorials online are for first and third person views and not text based games
     
  4. Johan_Liebert123

    Johan_Liebert123

    Joined:
    Apr 15, 2021
    Posts:
    474
    First, you'll have to setup a multiplayer source in your game, integrating it and getting it connected. Secondly you'll have to give more info on what your game is and how it works, and also a question for me, why do you wanna make it online, hows it gonna work etc

    You can use Photon Fusion (Most preferred), PUN2, Mirror etc

    https://doc.photonengine.com/en-us/fusion/current/fusion-100/fusion-101
    https://doc.photonengine.com/
    https://doc.photonengine.com/en-us/pun/current/getting-started/initial-setup
    https://mirror-networking.gitbook.io/docs/community-guides/quick-start-guide
     
  5. TLummen

    TLummen

    Joined:
    Jan 15, 2019
    Posts:
    15
    My game is a trivia game , I'm already getting questions from a database ( all 547 for endless mode ) , and I'm getting 20 questions at random for multiplayer...
    I want to show these same 20 questions to both players and winner is the one who gets more right , in the event of a tie the one who finishes first is winner....
    My game ..
    https://play.google.com/store/apps/details?id=com.GamersQuest.TwentyQuestionsTriviaGame
     
  6. Johan_Liebert123

    Johan_Liebert123

    Joined:
    Apr 15, 2021
    Posts:
    474
    So both players get 20 different questions each? and the person who finishes first is the winner?
    Is that what your trying to so when going online?

    I also have an idea that you can have 2 people in the room, and what you do is you pop up questions one at a time, and both players can see that same questions, and whoever answers first gets a point, and you do that 20 times. You can also do something like if the player who answers first gets the question wrong it goes onto the next player, if they both get it incorrect no one gets a point (Just a suggestion)

    So what you would want to do (regardless of the network solution you use) is you join a random room, when the room gets 2 players, pretty straight forward. You should look at some tutorials and the examples if any are provided by the solution, how the gameplay is dealt with etc. It'll give you an idea on how to deal with player input on buttons, storing scores etc
     
    Last edited: Oct 3, 2022
    TLummen likes this.
  7. TLummen

    TLummen

    Joined:
    Jan 15, 2019
    Posts:
    15
    No both players will get the same 20 questions , each question has a 15 sec timer , who ever gets the most correct answers is the winner , in the event both player get the same number right then fastest is the winner
     
    Johan_Liebert123 likes this.
  8. Johan_Liebert123

    Johan_Liebert123

    Joined:
    Apr 15, 2021
    Posts:
    474
    Read the edited post above, let me know if you have any questions
     
    TLummen likes this.
  9. TLummen

    TLummen

    Joined:
    Jan 15, 2019
    Posts:
    15
    Thank you for all your help, I'll look thru networking solutions and see which may be best , I've played with pun2 a little bit before
     
  10. Johan_Liebert123

    Johan_Liebert123

    Joined:
    Apr 15, 2021
    Posts:
    474
    Yeah In my opinion, it'll be the easiest to start with, duplicate the project, mess it around a bit. But then if you want to continue and extend with multiplayer, fusion would be the best
     
    TLummen likes this.
  11. TLummen

    TLummen

    Joined:
    Jan 15, 2019
    Posts:
    15
    I'll look at fusion