Added a check to only update when animation is playing
Merge pull request #612 from AndrewJo/animation-rewrite

Added a check to only update when animation is playing