How do I Update peer values

0 favourites
  • 4 posts
From the Asset Store
Fantasy Game includes more than 600 sound effects inspired by hit computer games like World of Warcraft and Diablo.
  • Basically what I am trying to do is on one layout the peers select which team they want to be on and then they go to the game layout which the host then has to change them to the team they seleected.

    I've tired using global values and other stuff but I can't figure out how to get it where the host knows

    who sent the message and to change there value say from 0 to 1 or to 2. There is only two teams in this game

    so any ideas or help would be great.

    I know I could do something where the host puts everyone into a preset groups but I like the idea of giving the player a choice over forcing them

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You could just use the send message action of the multiplayer object in a certain syntax to the host, where the host then knows how to get the relevant data and set the teams, then update all clients.

  • You could just use the send message action of the multiplayer object in a certain syntax to the host, where the host then knows how to get the relevant data and set the teams, then update all clients.

    Your basically just rewording my question instead of answering it. I know a peer can send a message to the host with the value it needs to change but how doe's the host know who sent the message? Can you show me an example of how this is done?

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