Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Playback System, Slow-mo?

Asked by
Muoshuu 580 Moderation Voter
9 years ago

I'm currently making a Playback System for an FPS I am building and can't figure out how I would decrease the speed of the playback to, for instance, show a bullet moving through the air towards a target, any suggestions?

1 answer

Log in to vote
2
Answered by
adark 5487 Badge of Merit Moderation Voter Community Moderator
9 years ago

It completely depends on your implementation of your playback system, but assuming you're using CFrame interpolation of some kind with delta time, it's possible to slow down the playback speed by modifying the total time to display it.

That is, if it takes 15.132 seconds to display the playback at regular speed, and you want to play it at half speed, simply double this time. That is, divide it by the fractional speed you want to reduce it by:

15.132/(1/2) == 15.132*2

If you want to play portions at regular speed and portions at reduced speed, or dynamically reduce the playback speed on the fly, that's a much more complex issue, and I won't be able to help you in the scope of this question.

0
Never thought to use an interpolation function...stupid me. Muoshuu 580 — 9y
Ad

Answer this question