louisstow/Crafty — Issue #178: crop does not work during animation
Author: BlackScorp
Created: 2012-01-11 21:54:31+00:00
State: open

Crafty.c("Player",{
init:function(){
this.requires("SpriteAnimation").crop([10,10,20,20])//just example crop
.animate("walk_left", 6, 3, 8) //During animation the Entitie will have full size and not croped size
.animate("walk_right", 9, 3, 11)
.animate("walk_up", 3, 3, 5)
.animate("walk_down", 0, 3, 2)
}
});