0
Answered

localTimeScale works, LerpTimeScale not :-(

Manne 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 1

I wrote a very basic script which controls the enemies and the player timeline.

This works fine. But only with localTimeScale
It is not working with LerpTimeScale

My code:

https://pastebin.com/kM5Wcnte

Any idea why it won't Lerp?

Chronos Version:
2.4.9
Unity Version:
5.5.0f3
+1
Answered

Hi Manne!

LerpTimeScale is meant to be called once when you want to start lerping, not at each update frame.

Have a look at the examples here:

http://ludiq.io/chronos/documentation/clock#Examples

Cheers,

Lazlo