Updating variables is much slower for some reason
Posted: 12 Jul 2010, 16:21
I've made 2 real time multiplayer games where it's just client to client style. In both those games I had an EnterFrame event that goes through the user list and updates the position of every other player in the game using getVariable (). Those 2 games updated the positions at a fast speed so when one player moves, other players see that player moving smoothly.
My new game does pretty much the same thing so far. A player constantly sets his variables in an EnterFrame event and another program constantly updates his position. But when the player moves, in that other program it looks like he is lagging. It looks like it's updating at 15 fps instead of 30 fps.
http://flashulous.byethost10.com/RPGFLA.swf
http://flashulous.byethost10.com/RPGServer.swf
Use awd and awd to log in and click the Assassin button. Use the arrow keys and move to the blue zone because that's where the server program can see you. The server program is where it looks like the player is lagging.[/url]
My new game does pretty much the same thing so far. A player constantly sets his variables in an EnterFrame event and another program constantly updates his position. But when the player moves, in that other program it looks like he is lagging. It looks like it's updating at 15 fps instead of 30 fps.
http://flashulous.byethost10.com/RPGFLA.swf
http://flashulous.byethost10.com/RPGServer.swf
Use awd and awd to log in and click the Assassin button. Use the arrow keys and move to the blue zone because that's where the server program can see you. The server program is where it looks like the player is lagging.[/url]