Game Development Community

Slow Motion in a Multiplayer Game

by Caleb · in Technical Issues · 05/09/2007 (4:50 pm) · 3 replies

How can I make the entire world go into slow motion in a multiplayer game? I'm using "$TimeScale = 0.4;" to slow down time. It works fine in single player, but is a real problem when in multiplayer, so any help is appreciated.

Thanks.

#1
05/09/2007 (4:57 pm)
Perhaps you need to use a server command to say that you are ready for the timescale to be set, and then the server would issue client commands to each of your connected clients to set the actual timescale. However, I would be inclined to think this would cause all your animations to slow down while this is happening. I wonder if there's a way to set the timescale only on the individual objects instead of globally... that would really help.
#2
05/09/2007 (4:59 pm)
WOW! you typed all that in the time it took me to edit my post?????

Server command, sounds like a good idea, I give it go.
Thanks.
#3
05/09/2007 (5:03 pm)
You would need both a server command and a client command. The server command would need to loop over all of the connected clients (or perhaps only the ones that can see the player in question - your implementation of this will vary) and send a client command. The client command would then actually execute the "$TimeScale = 0.4;"