Announcement

Collapse
No announcement yet.

Networking turn based game question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Networking turn based game question

    Hello!

    I'm prototyping a turn based party game (Something like Mario Party) each client have a turn per round, so only one Client can perform an action at the time, How can I make only one client show an option menu to perform an action while the other clients wait? I assume that the the client turn is decided by the server, but how can I store all the clients and call a function only in one of them from server?

    Thanks in advance!
    Last edited by LorenzoHowar; 03-06-2020, 12:46 PM.

    #2
    each client it's a player controller, Each client has a HUD even the listen server but the dedicated does not do you get it or need more help?
    Some cool unreal projects you may like!


    Developer of GOTA - Survivalism Gladiatorial game Buy the game google gladiators of the arena steam https://store.steampowered.com/app/7..._Of_The_Arena/

    Download the demo Download the demo
    external link Dropbox DropBox

    Become a c++ Professional now C++ Networking Tutorial

    Comment


      #3
      via On Join, you get the PlayerController of the joined Client.
      Ask if the Function caller has authority (=is server) and store the PlayerController inside an array.
      Via multicast you can enable/disable UI, possessions and bindings to the Client at Turn.
      after finishing the turn, call the server function to switch ui and bindings again, to the next PC index.

      It's a bit complicated to tell.. We are working on a Turn based (advance Wars) like Game, mixed with Realtime elements.

      Comment

      Working...
      X