I am reading more and more about smartfox server as i find it very exiting.
The AS3 Documentation is also very well done !
Good job guys.
My question is not only for a fighting game but more a general approach on how to.
To make it simple, my game run at 60 fps. (I can change the framerate if necessary)
Let's say that there is 4 players gaming together on the server.
So, in the case of a fighting game, do i need to update all the characters who are doing an action or moving every 60 fps ?
like :
Code: Select all
private function onEnterFrame(evt:Event):void {
...
smartFox.setUserVariables(uVars);
}
function onUserVariablesUpdateHandler(evt:SFSEvent):void {
//get the 4 users variables here
//this is called every frames per seconds.
}
With 60 call every seconds, looped for 4 users isn't the server going to explode ?
Thank you very much for any help or advices.
Regards.