I’m trying to slow my game down gradually. I have been using the proxy’s set_time_step to pause the game and that works fine. But I was wondering if it’s possible to gradually slow it down.
Sure, set_time_step can do that as well. There’s a couple examples in the API spec:
-- Update the collection twice as slow:
msg.post("#proxy", "set_time_step", {factor = 0.5, mode = 0})
You should be able to for instance animate (go.animate) a number property (go.property) and feed that to set_time_step to smoothly slow down or speed up your game.
2 Likes