Hey people, I'm stuck on this one for a while.
The goal is to have XP bar with lerp continue working after pausing the game (global time scale 0).
I've tried setting the XPBar time scale to 1 after pausing the game but it still does not work. Probably because the action for lerp is in every tick event. Is there a way to use dt of the object (after I set it's time scale to 1) like every XPBar.dt seconds or something like that?
I've also tried using the dt within the lerp itself:
lerp(width,xpbarwidth*(xp/maxxp),XPBar.dt*4)
But it does not work.
The one workaround I found is adding all objects to family and setting their timescale to 0, but that raises some other problems unfortunately.
Any help would be greatly appreciated!