Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The view does not go to the "first place" if moveBy reverse value! #5

Open
Morteza-Rastgoo opened this issue Oct 10, 2015 · 2 comments
Labels

Comments

@Morteza-Rastgoo
Copy link

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?

@dtx12 dtx12 added the bug label Oct 11, 2015
@dtx12
Copy link
Owner

dtx12 commented Oct 12, 2015

I'll investigate what's happenning when I'll have a free time, as workaround currently you may add run action with empty Runnable at the end of your sequence.

@Morteza-Rastgoo
Copy link
Author

I already tried that but no luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants