How do I sync text?

Get help using Construct 2

Post » Thu Sep 17, 2015 4:07 am

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.
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Thu Sep 17, 2015 10:00 am

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.
B
6
S
1
Posts: 24
Reputation: 460

Post » Thu Sep 17, 2015 5:22 pm

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
B
23
S
8
Posts: 115
Reputation: 2,640

Post » Mon Sep 21, 2015 10:55 am

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.
B
6
S
1
Posts: 24
Reputation: 460


Return to How do I....?

Who is online

Users browsing this forum: alextro, Ryan Kocourek and 3 guests