Added a way to stop the currently running animation.

I needed a way to stop an animation before it's finished.
(e.g. on an 'end level' screen where the player can earn up to three stars and either one, two, or three stars are animated on the scene)

The current code already included the required functionality, but it wasn't extracted into a separate public function.