In libgdx I want to move actor out of stage using movetoaction.setposition()
but even when i setX
coodinate to negative integer it still stops at x0
.
Here is snipet:
move = new MoveToAction();
move.setPosition(-10, e[i].getY());
move.setDuration(5);
e[i].addAction(move);
stage.addActor(e[i]);