I’m used to working in Unity where i can use coroutines to animate an entity over time or animate pretty much anything (like a score counting up or a health bar counting down to a specific value), all through code.
How else can you animate a score or entity over time? in the update function is an option but i would think it’s kinda hard to do it there and to have full control on how fast the animation and other settings are…
Hi, i found a solution to this problem. Not specifically coroutines, but the animation part.
After searching for a whole day, i found that on the github page of playcanvas, there is a script that can “tween” values over time. i didn’t know this was already implemented in the engine but apparently it is.