dim3 Forum

Full Version: Slowing the game clock
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Is there a way, or could you put in a handle brian, to allow scripts to alter the game clock, ie slow down the animation/movement speed etc. This would allow for slow mo/'bullet time' features.
that would be so cool :D!
YEAH! That would be awesome! Smile
No offense guys, but that would probably require a HUGE rework of the engine. ALL the animation, physics, timer, wait, chain, ai, etc would have to be reworked and considering how much Brian's done with 2.2 I wouldn't hold your breath. This would also probably slow down the game a few FPS, not to mention you can accomplish this yourself with a bit of scripting. Although it would take a heap of work, you could just have the player change a global variable named "time_factor" or something like that whenever you need to slow down/speed up. Then you just have the delay for all the waits/timers of the objects you want to be slowed down modified whenever this variable is set. You would also probably have to make them switch animations as well. This is a LOT of work but it would be considerly less than making it in core.
disruptiv Wrote:No offense guys, but that would probably require a HUGE rework of the engine. ALL the animation, physics, timer, wait, chain, ai, etc would have to be reworked and considering how much Brian's done with 2.2 I wouldn't hold your breath. This would also probably slow down the game a few FPS, not to mention you can accomplish this yourself with a bit of scripting. Although it would take a heap of work, you could just have the player change a global variable named "time_factor" or something like that whenever you need to slow down/speed up. Then you just have the delay for all the waits/timers of the objects you want to be slowed down modified whenever this variable is set. You would also probably have to make them switch animations as well. This is a LOT of work but it would be considerly less than making it in core.

Actually, it's relatively easy Smile The physics clock is controlled by me, I can just turn it down and then the whole game slows down, animations, everything. It's all tied to the physics clock (including script calls, script timing, etc.)

It would have to wait until after 2.2, because as easy as it is, I bet there's going to be some unforeseen problems (for instance, control then becomes more wild, for instance, think about it this waySmile

Physics 100 x a second
Control 100 x a second

1 move with control = 1 move with physics

Physics 50 x a second
Control 100 x a second

1 move with control = twice as fast in physics

A solvable problem, but you NEVER want to slow down control, it will just frustrate the player. These bullet time sequences, how much is the player still in control?

[>] Brian
Well, I was thinking of having super speed where the player experances a slow down of 50%, say, arround him and his speed relitive to the other objects is 150% faster.

Normally camera control is unaffected. I would probably have sidestep change to some funky jump flip when in super speed.
Mafoo, kind of like the force speed in jk2 in single player vs multiplayer, right?
possibly.. havent played it.
mafoo Wrote:Well, I was thinking of having super speed where the player experances a slow down of 50%, say, arround him and his speed relitive to the other objects is 150% faster.

Normally camera control is unaffected. I would probably have sidestep change to some funky jump flip when in super speed.

That would be a bit tricker because you are effecting physics on a per object basis, you aren't slowing down the entire world time. Doable, but not as simple.

[>] Brian
ggadwa Wrote:
mafoo Wrote:Well, I was thinking of having super speed where the player experances a slow down of 50%, say, arround him and his speed relitive to the other objects is 150% faster.

Normally camera control is unaffected. I would probably have sidestep change to some funky jump flip when in super speed.

That would be a bit tricker because you are effecting physics on a per object basis, you aren't slowing down the entire world time.  Doable, but not as simple.

[>] Brian
Maybe have one extra clock that can be borrowed by a special tree of objects.
Pages: 1 2
Reference URL's