Package arc.scene.actions
Class MoveByAction
java.lang.Object
arc.scene.Action
arc.scene.actions.TemporalAction
arc.scene.actions.RelativeTemporalAction
arc.scene.actions.MoveByAction
- All Implemented Interfaces:
Pool.Poolable
Moves an actor to a relative position.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
float
void
setAmount
(float x, float y) void
setAmountX
(float x) void
setAmountY
(float y) protected void
updateRelative
(float percentDelta) Methods inherited from class arc.scene.actions.RelativeTemporalAction
begin, update
Methods inherited from class arc.scene.actions.TemporalAction
act, end, finish, getDuration, getInterpolation, getTime, isReverse, reset, restart, setDuration, setInterpolation, setReverse, setTime
-
Constructor Details
-
MoveByAction
public MoveByAction()
-
-
Method Details
-
updateRelative
protected void updateRelative(float percentDelta) - Specified by:
updateRelative
in classRelativeTemporalAction
-
setAmount
public void setAmount(float x, float y) -
getAmountX
public float getAmountX() -
setAmountX
public void setAmountX(float x) -
getAmountY
public float getAmountY() -
setAmountY
public void setAmountY(float y)
-