2d animation helper