A better framework can be found here: https://scratch.mit.edu/projects/384605873/ Use it instead!
I remixed this to show a more optimized method of animating, in order to instruct others on how to reduce lag and inconsistent results in their projects.