Page 1 of 1
Lube: Multiple connections going at once.
Posted: Thu Sep 03, 2015 9:04 am
by Ethan-Taylor
Hey guys,
Ethan here.
I've been messing around with LUBE for a first multiplayer game I'm creating.
But the only problem is that the example that I downloaded for LUBE only handles one connection at a time.
Is it possible to have multiple players connected and all draw them on the screen?
Also is it possible to identify players with an id? Or maybe have a player limit?
Thanks,
Ethan
Re: Lube: Multiple connections going at once.
Posted: Thu Sep 03, 2015 11:04 am
by bartbes
Ethan-Taylor wrote:
Is it possible to have multiple players connected and all draw them on the screen?
Of course.
Ethan-Taylor wrote:
Also is it possible to identify players with an id? Or maybe have a player limit?
Lube gives you a clientid, that is used when you want to send messages to that client, and can also be used as an identifier for your own purposes.
Re: Lube: Multiple connections going at once.
Posted: Thu Sep 03, 2015 8:56 pm
by Ethan-Taylor
bartbes wrote:Ethan-Taylor wrote:
Is it possible to have multiple players connected and all draw them on the screen?
Of course.
Is there any introductory topics about this?
Re: Lube: Multiple connections going at once.
Posted: Fri Sep 04, 2015 7:11 am
by bartbes
It's exactly the same as having one client.
Re: Lube: Multiple connections going at once.
Posted: Tue Sep 08, 2015 2:54 am
by Ethan-Taylor
bartbes wrote:It's exactly the same as having one client.
Sorry bartbes for the slow reply, schools been getting a bit hard lately.
I might seem a little annoying, but I cannot see how I could have multiple connections at once.
I mean, I can connect to clients to one server, but when I have them both send packets with a 'name' variable in them, they seem to get mixed up and output weird values.
I'm sorry if I'm taking up time but do you have some example code I can use for the purpose described in my initial post?
If so that would be great and it would help me understand more,
Thanks,
Ethan.