Hi,
Has anyone figured out how to use the Binary Data plugin with the Multiplayer Plugin to send a message? After struggling for a few weeks trying to conceptualize binary data as well as Scirra's plugin, I'm hoping to get some guidance.
The multiplayer message I am trying to send contains the following data (for multiple peers):
PeerID: 4-5 alpha/numeric characters
X Position: 1-5 digit integer
Y Position: 1-5 digit integer
Direction: 0, 1, 2 or 3
Currently I'm sending this data as a string with separators to distinguish between the variables as well as the peers. I know this isn't best practice, but the aim is to "shrink" the data with the Binary Data object. I guess what's confusing me is how to setup the actions/events to load the data into (and read the data from) the Binary Data object, and I'm not sure if multiple Binary Data objects are needed.
Side notes:
- If anyone has a Binary Data plugin example file that they would be willing to share, that would be super helpful! I haven't come across any on the forums nor is there a tutorial.
- I'm not using the built-in multiplayer sync, and instead I'm using "send message" to send data to specific peers.
Regards,
Adrian