How can Multiplayer Host re-broadcast at same speed?

0 favourites
  • 3 posts
From the Asset Store
Circles & Lines
$2 USD
80% off
You can change amount and speed of circles, length of lines and etc. Only 6 events.
  • I'm setting up some multiplayer code and I think I'm doing Ok, but I'm hung up on one bit...

    For example: I'm sending all sprite X/Y change messages as mode "Unreliable", but I'm sending updates to sprite instance variables as mode "Reliable". How can the host re-broadcast at same mode/speed?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • With unreliable the package is not checked for delivery, and thus not broadcasted again if it never arrived.

    With reliable there is a verification of package arrival, and if the message had an error it is retransmitted.

    This happens in milliseconds.

  • Thanks lennaert

    Yeah I do understand the difference in the modes. The problem I'm seeing is C2 provides no simple way for the host to re-broadcast messages to the peers at same speed. I'm using both speeds. Unreliable for sprite positional messages because it's fine if some get dropped here and there. But I'm using Reliable for sharing state information and instance var values. I've hacked around the issue by looking at the Multiplayer.Tag value and then determining what mode to use for re-broadcasting. Not awesome coding :-/

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