Question about the time parameters in gui.animate()

Hello there,

I am fiddling about with gui scene transitions. The transition is supposed to happen within 1.5 seconds, regardless of the user’s system.
Can I use gui.animate() to achieve this or are its parameters “duration” and “delay” dependent on frame rate?

The animation functions use the delta time between each game update.
So yes, by default, if you specify your time to 1.5 seconds, then it should take 1.5 seconds.

Extra info: There’s also a possibility to set the collection update rate to something other than 1.0x, which will in fact affect all the animations. E.g. if you wish to pause a collection proxy, you can set it’s update rate to 0, and it won’t update anymore.

2 Likes

Thank you very much @Mathias_Westerdahl! That’s great, so can I avoid the update function and the somewhat clumsy timer code I wrote. And thanks as well for the extra info, this is very useful.

3 Likes