Re: bgt, assigning players in online games
Hi.
Well for assigning players for when they connect, you have the connect event in bgts manual.
I don't really remember the syntax, but it should go something like this (asuming that you're taking care of logins and such):
c* client try to connect to your server.
* server receives the connection in the connect event.
* take the peer_id from that connect_event (which is unique to each connection).
* Create your player class with that peer_id, like p = Player(peer_id)
* then add that to a global list, so you can get it later.
That's the just of it.
Hope it helps
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector