Syncing properties across a game server

Posted by Vaughan Hilts on Game Development See other posts from Game Development or by Vaughan Hilts
Published on 2012-06-30T17:39:41Z Indexed on 2012/06/30 21:26 UTC
Read the original article Hit count: 214

Filed under:
|
|
|

I'm beginning to implement a simple scripting system into my networked server, and I've hit a snag. Before, I've been wrapping my calls into functions on objects that manipulate objects, but lately I've been finding this to be a pain for simple things. For example, if I set 'player.HP = 1'.. this works server-side. But the player side never sees this change unless I explicitly send a packet to inform the client.

For many things like map swapping that require more complicated changes, like change X, Y, Map and do this.. I have a function. That's fine. But what about these small properties I want to sync?

© Game Development or respective owner

Related posts about c#

Related posts about networking