Optimize execution and base it on tweencontext instead of sprite