How to do an Update Loop with SFS Extensions?

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

JarrodParkes
Posts: 6
Joined: 27 Jun 2010, 23:23
Location: Madison
Contact:

How to do an Update Loop with SFS Extensions?

Postby JarrodParkes » 19 Jul 2010, 14:38

I have been asking around in my quest to create a extremely simple networked game using the Unity3d game engine. The game I had in mind was Pong and my major question still lies in how to do the ball simulation on the server. If the game is running completely on the server (clients are just spectators really) then how do I have an "Update" loop on the server? As to update the ball position every call?
Xbox360 Gamertag - TBRM 2
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 21 Jul 2010, 10:28

Moved: please make sure to post in the Unity section to expedite responses.
Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 22 Jul 2010, 13:48

Short question that takes a very long answer.
We have discussed these topics all over the board many times, there are several approaches each with its pros and cons.

Unfortunately due to the complexity of the subject I am not able to provide any quick answer to your question but I would suggest to perform a couple of searches in the board and see what we already said.

ThomasLund posted an interesting overview of the synchronization/prediction issues with some nice tips in this very section of the forums.

One day we should probably consolidate all these posts into one major discussion...
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 26 guests