Setting what time an animation should start in the AnimationPlayer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By StraightUpGruntled

I am currently trying to find a way that I can set what time an animation should start in the animation player. I’m using this for a day-night cycle, and I have variables counting what the time of an animation is in seconds. So you switch scenes when you go in or out of buildings, and when you exit a building and it is in the middle of sunset, I want a way to start the sunset animation halfway through. Is there any way I can do this?

:bust_in_silhouette: Reply From: ZacB

Have you tried the “advance” method from the AnimationPlayer class ?
For exemple :

YourAnimationPlayer.advance(TimeToShift)

I just found that and tried it as you told me. It works perfectly! Thank you!

StraightUpGruntled | 2018-07-23 19:26

^^ your welcome

ZacB | 2018-07-23 19:36