improvements to animate function
Merge branch 'master' of github.com:anura-engine/anura
some improvements to the animate function