This is my code:
LinearInterpolator interpolator = new LinearInterpolator();
float width = (float) worldMap[0].getWidth();
//width = 400;
float duration = 1f;
play(forever(sequence(moveBy(-width, 0f, duration, interpolator), moveBy(width, 0f, duration, interpolator))), worldMap[0]);
I am trying to make a loop but The view does not go to the first place, and instead it moves left more than moving to right! So, after few seconds, the view goes out of the screen!
What is wrong here?
This is my code:
I am trying to make a loop but The view does not go to the first place, and instead it moves left more than moving to right! So, after few seconds, the view goes out of the screen!
What is wrong here?