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
Lube: Multiple connections going at once.
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 34
- Joined: Mon Nov 24, 2014 9:15 pm
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Lube: Multiple connections going at once.
Of course.Ethan-Taylor wrote: Is it possible to have multiple players connected and all draw them on the screen?
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.Ethan-Taylor wrote: Also is it possible to identify players with an id? Or maybe have a player limit?
-
- Prole
- Posts: 34
- Joined: Mon Nov 24, 2014 9:15 pm
Re: Lube: Multiple connections going at once.
Is there any introductory topics about this?bartbes wrote:Of course.Ethan-Taylor wrote: Is it possible to have multiple players connected and all draw them on the screen?
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Lube: Multiple connections going at once.
It's exactly the same as having one client.
-
- Prole
- Posts: 34
- Joined: Mon Nov 24, 2014 9:15 pm
Re: Lube: Multiple connections going at once.
Sorry bartbes for the slow reply, schools been getting a bit hard lately.bartbes wrote:It's exactly the same as having one client.
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.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 4 guests