Skip to content

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

@Morteza-Rastgoo

Description

@Morteza-Rastgoo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions