how to make a walk cycle for a 2d game between 2 frames( right_leg_up.png and left_leg_up.png) for a character -thanks