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?
Develop games in your browser. Powerful, performant & highly capable.
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 :-/