changed animation method in spritepack