How do I sync text?

0 favourites
  • 4 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • So I'm trying to sync text in a multiplayer game, The host can see when a team scores but the peers can't see anything change.

    So how could someone make it where the host sends a message or what have you to the peers so they can get the text update.

    Do I use global verbals? Or some kind of Voodoo Construct 2 Magic?

    Any help would be great.

  • Just make the host broadcast a message to the peers with the text to show, or just the score, and then in the peers paint the message.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm sorry but could you please show me an example? I've tired looking though tutorials and the chat example but I just don't get it.

    This is what I got so far

    Every 1 second >> Broadcast tag "bluescore" message BlueScore (from"",mode Reliable ordered)

    BlueScore is a global value

  • On host:

    Multiplayer - Broadcast tag "bluescore" message BlueScore (from "", mode Reliable ordered)

    On peers:

    Multiplayer - On peer message "bluescore"

    TxtScore - Set text to "Someone has scored " & Multiplayer.Message & " points!"

    TxtScore - Set visible

    You can add a timer to hide TxtScore some seconds later.

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