Now includes support for multiple animations. (used for example when an
Enemy is changing directions left and right)