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]
Updating variables is much slower for some reason
You can't update clients at 30fps, most of the clients out there don't have a lag so low to handle these updates.
I would recommend to search for other topics on this in the board, it's been discussed myriads of times.
Quickly... 30fps requires that your client lag is <= 33ms
This is very unlikely. A vary good internet connection usually has 50-80ms, but you can also find people with 150-200ms or even worst.
Your game should fire no more than 15-20 updates per second and use prediction algorithms to fill in the blanks.
Take a look a this long post where Thomas Lund discusses a few of these topics: http://forums.smartfoxserver.com/viewto ... 9292#29292
I would recommend to search for other topics on this in the board, it's been discussed myriads of times.
Quickly... 30fps requires that your client lag is <= 33ms
This is very unlikely. A vary good internet connection usually has 50-80ms, but you can also find people with 150-200ms or even worst.
Your game should fire no more than 15-20 updates per second and use prediction algorithms to fill in the blanks.
Take a look a this long post where Thomas Lund discusses a few of these topics: http://forums.smartfoxserver.com/viewto ... 9292#29292