the problem is that you need to send the <sendparam > node everytime a position changes and then everyone will receive this node back ... so it will create a lot of noisy traffic.
And currently only the creator of the room can set params, so if the creator leaves the room there will be some problems too.
Good luck !
torleif
Ok, I’ve sort of solved it. How I did it was:
1) User connects; it creates a movie clip for each person in the room.
2) User sends a request to the server to get vars.
3) Each user in the room sends data back to user (X,Y ect).
4) Each movieclip in room to user get moved into place.
But it still feels like cheating. I can hide the people until the variables have loaded, but lag will make people popping up in different places a bit, well, ugly.
So is there a way I can store variables on the xml server? That might be real advantage over the macromedia xml parser :P
torleif
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:
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?
SORRY, website is currently mostly broken due to software changes on the server.
Hope to fix it soon ...