Hi,
I am creating a MMO application in which i need to keep a track of users who login in the application. Then after 2 users enter in room i need to begin the
app. The User object can only be saved on server side only... is their any way
to keep track of users and perform user interaction on client side.
Can this be done only on server side?
I am using SmartFoxServer 2X.
Regards
MMO Application problem
-
imakeinternet
- Posts: 8
- Joined: 16 Feb 2011, 18:06
- Location: Michigan, USA
- Contact:
Absolutely. Think of the CLIENT side as like a simple application that responds only to events given from the server side extension. The SERVER side should always be responsible for keeping your clients information in SYNC and in return it should pass events to the correct clients to update them when this information changes.forsfs09 wrote:Hi,
Thnkx for reply ... I can now start the app when i get the user count in USER_ENTER_ROOM
But to call particular user object actions and to maintain the user interaction
so that the two users can be in sync do i need server side extentions.
Regards
You could technically keep everything on the client side, but it's not recommended. Handling server logic on client side usually leads to users hacking up the client to change variables and loads of other things. Leaving this on the server side eliminates this possibility.
Cheers,
Mike