Is there a way to listen for every increment in the game’s frames? I want to use an image in my loading scene which rotates as the assets load, then rotates faster and faster as more assets load, by changing a variable every time the loading progresses, which speeds up the rotation (there’s probably a better way to do this)
However I can’t actually make the sprite rotate since update() doesn’t function until everything in preload finishes, so can I pop a listener in preload that will rotate the sprite the same way as rotating an image using update()?:
I can’t test it yet, but I think I tried something similar to that, putting the rotation itself inside the load listener, but the image rotates every time an asset loads instead of every frame which makes it look like it’s having a seizure since the asset loading rate changes with different file sizes
Thanks espace for the recommendation, but I think I’ll be going with the sceneUpdate statement since it’s way simpler :))
However is it normal for update() to now be run at different rates? I put a console.log in update() as well and it seems that the rate at which it is called isn’t uniform.