Re: multiplayer over the network
Posted: Wed Sep 13, 2017 7:14 pm
Well, looks like UDP is a waaaay faster - at least for me it works very well - pressing arrow on one computer moves the sprite on the other one on the fly.
Thanks
But anyway, have another question (because I'm not sure if I understood correctly the documentation):
to use UDP do I have to create UDP Object on each computer I want to communicate with (and with the same parameters) ? - so far I did like this and it works but maybe it is not the right way.
Thanks
But anyway, have another question (because I'm not sure if I understood correctly the documentation):
to use UDP do I have to create UDP Object on each computer I want to communicate with (and with the same parameters) ? - so far I did like this and it works but maybe it is not the right way.
Code: Select all
createUDPObject(1,5912)