Skip to main content
March 10, 2009
Question

Multiuser character movement synchronization

  • March 10, 2009
  • 1 reply
  • 378 views
hello
am working on a multi player game in flash cs3 and FMS 3.5,

user can register, select their characters (small movieclips i have only one at this time and that is Fairy) and then login to game.

every person can see character of all online users at his/her screen with username popped up at the head of characters.

user can move his/her character on screen using arrow keys of keyboard but their movement is not synchronized and visible to all users. i want to synchronize character movements at all screens simultaneously.

any positive response or help will be highly appreciated..

regards
maani
    This topic has been closed for replies.

    1 reply

    Inspiring
    March 11, 2009
    I think the best manner to accomplish something like this would be with a shared object. Put each user in their own slot in the shared object with an x,y for their position.

    A shared object should update relatively quickly, but you could always use a sharedobject.setDirty() if performance isn't real time enough for you.