torleif
Visitor
|
hiding varibles in the connectin xml - 2006/08/06 04:34
Hi, I’ve ran in to a problem and its becoming a real headache. I’m making a game, in which people can join leave at will.
the problem is when a new user enters the room, I want variables to be sent from the other players in the room. The problem is that Pal_On_clients(node) doesn’t really pick up on all people entering, causing the new person to be clumped together with the other players.
So I’m thinking that some how I can make so that when someone connects, I get data something like this back from the server:
SEND> <connect nickname=”KoolBoy” />
RECEIVE> <connect isok="1" players=”name:test:x:10:y:20,name:test2:x:10:y:20” />
How would I go about something like this? I have tried to clump together code that works by listing to an on connection request, and then sending the data. But when the Pal_On_clients fails, theres no real point.
help?
|