Real-time Multiplayer Movement - Flash ActionScript 3 (AS3) - Flash Media Server
Posted
by
Wild Phoenix
on Stack Overflow
See other posts from Stack Overflow
or by Wild Phoenix
Published on 2011-01-01T15:44:56Z
Indexed on
2011/01/01
15:54 UTC
Read the original article
Hit count: 311
flash
|actionscript-3
Dear All,
I am creating a simple game, where I would like more than one player to be able to connect and play. With regards to a single player game, I am more than comfortable with the coding.
I cannot seem to figure out how to connect up more than one player and update their screens when the each player moves. So far I have the players connecting, but I still need to be able update the SharedObject when a player moves, then push it out to the other players.
I have searched high and low for a good tutorial / source code to review.
A tutorial i found so far listened for a click as it was a mouse based movement, then this told the SHaredObject to tell the client (and the others) to update that clients movement. However all of my movement is listend and acted on in the playership class.
© Stack Overflow or respective owner