Problems when making custom animations to an object