public class ScaleToAction extends TemporalAction
Constructor and Description |
---|
ScaleToAction() |
Modifier and Type | Method and Description |
---|---|
protected void |
begin()
Called the first time
TemporalAction.act(float) is called. |
float |
getX() |
float |
getY() |
void |
setScale(float scale) |
void |
setScale(float x,
float y) |
void |
setX(float x) |
void |
setY(float y) |
protected void |
update(float percent)
Called each frame.
|
act, end, finish, getDuration, getInterpolation, getTime, isReverse, reset, restart, setDuration, setInterpolation, setReverse, setTime
protected void begin()
TemporalAction
TemporalAction.act(float)
is called. This is a good place to query the actor's
starting
state.begin
in class TemporalAction
protected void update(float percent)
TemporalAction
update
in class TemporalAction
percent
- The percentage of completion for this action, growing from 0 to 1 over the duration. If
reversed
, this will shrink from 1 to 0.public void setScale(float x, float y)
public void setScale(float scale)
public float getX()
public void setX(float x)
public float getY()
public void setY(float y)