Package arc.scene.actions
Class Actions
java.lang.Object
arc.scene.actions.Actions
Static convenience methods for using pooled actions, intended for static import.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Action>
TReturns a new or pooled action of the specified type.static AddAction
static AddAction
static AddListenerAction
addListener
(EventListener listener, boolean capture) static AddListenerAction
addListener
(EventListener listener, boolean capture, Element targetActor) static AfterAction
static AlphaAction
alpha
(float a) Sets the actor's alpha instantly.static AlphaAction
alpha
(float a, float duration) Transitions from the alpha at the time this action starts to the specified alpha.static AlphaAction
Transitions from the alpha at the time this action starts to the specified alpha.static ColorAction
Sets the actor's color instantly.static ColorAction
Transitions from the color at the time this action starts to the specified color.static ColorAction
Transitions from the color at the time this action starts to the specified color.static DelayAction
delay
(float duration) static DelayAction
static AlphaAction
fadeIn
(float duration) Transitions from the alpha at the time this action starts to an alpha of 1.static AlphaAction
Transitions from the alpha at the time this action starts to an alpha of 1.static AlphaAction
fadeOut
(float duration) Transitions from the alpha at the time this action starts to an alpha of 0.static AlphaAction
Transitions from the alpha at the time this action starts to an alpha of 0.static RepeatAction
static VisibleAction
hide()
static LayoutAction
layout
(boolean enabled) static MoveByAction
moveBy
(float amountX, float amountY) Moves the actor instantly.static MoveByAction
moveBy
(float amountX, float amountY, float duration) static MoveByAction
static MoveToAction
moveTo
(float x, float y) Moves the actor instantly.static MoveToAction
moveTo
(float x, float y, float duration) static MoveToAction
static MoveToAction
moveToAligned
(float x, float y, int alignment) static MoveToAction
moveToAligned
(float x, float y, int alignment, float duration) static MoveToAction
moveToAligned
(float x, float y, int alignment, float duration, Interp interpolation) static Action
Sets the origin to the center.static ParallelAction
parallel()
static ParallelAction
static ParallelAction
static ParallelAction
static ParallelAction
static ParallelAction
static ParallelAction
static RemoveActorAction
remove()
static RemoveActorAction
static RemoveAction
removeAction
(Action action) static RemoveAction
removeAction
(Action action, Element targetActor) static RemoveListenerAction
removeListener
(EventListener listener, boolean capture) static RemoveListenerAction
removeListener
(EventListener listener, boolean capture, Element targetActor) static RepeatAction
static RotateByAction
rotateBy
(float rotationAmount) Rotates the actor instantly.static RotateByAction
rotateBy
(float rotationAmount, float duration) static RotateByAction
static RotateToAction
rotateTo
(float rotation) Rotates the actor instantly.static RotateToAction
rotateTo
(float rotation, float duration) static RotateToAction
static RunnableAction
static ScaleByAction
scaleBy
(float amountX, float amountY) Scales the actor instantly.static ScaleByAction
scaleBy
(float amountX, float amountY, float duration) static ScaleByAction
static ScaleToAction
scaleTo
(float x, float y) Scales the actor instantly.static ScaleToAction
scaleTo
(float x, float y, float duration) static ScaleToAction
static SequenceAction
sequence()
static SequenceAction
static SequenceAction
static SequenceAction
static SequenceAction
static SequenceAction
static SequenceAction
static VisibleAction
show()
static SizeByAction
sizeBy
(float amountX, float amountY) Sizes the actor instantly.static SizeByAction
sizeBy
(float amountX, float amountY, float duration) static SizeByAction
static SizeToAction
sizeTo
(float x, float y) Sizes the actor instantly.static SizeToAction
sizeTo
(float x, float y, float duration) static SizeToAction
static TimeScaleAction
static TouchableAction
static TranslateByAction
translateBy
(float amountX, float amountY) static TranslateByAction
translateBy
(float amountX, float amountY, float duration) static TranslateByAction
translateBy
(float amountX, float amountY, float duration, Interp interpolation) static RunnableAction
translateTo
(float amountX, float amountY) static VisibleAction
visible
(boolean visible)
-
Constructor Details
-
Actions
public Actions()
-
-
Method Details
-
action
Returns a new or pooled action of the specified type. -
addAction
-
addAction
-
removeAction
-
removeAction
-
originCenter
Sets the origin to the center. -
moveTo
Moves the actor instantly. -
moveTo
-
moveTo
-
moveToAligned
-
moveToAligned
-
moveToAligned
public static MoveToAction moveToAligned(float x, float y, int alignment, float duration, Interp interpolation) -
moveBy
Moves the actor instantly. -
moveBy
-
translateTo
-
translateBy
public static TranslateByAction translateBy(float amountX, float amountY, float duration, Interp interpolation) -
translateBy
-
translateBy
-
moveBy
public static MoveByAction moveBy(float amountX, float amountY, float duration, Interp interpolation) -
sizeTo
Sizes the actor instantly. -
sizeTo
-
sizeTo
-
sizeBy
Sizes the actor instantly. -
sizeBy
-
sizeBy
public static SizeByAction sizeBy(float amountX, float amountY, float duration, Interp interpolation) -
scaleTo
Scales the actor instantly. -
scaleTo
-
scaleTo
-
scaleBy
Scales the actor instantly. -
scaleBy
-
scaleBy
public static ScaleByAction scaleBy(float amountX, float amountY, float duration, Interp interpolation) -
rotateTo
Rotates the actor instantly. -
rotateTo
-
rotateTo
-
rotateBy
Rotates the actor instantly. -
rotateBy
-
rotateBy
-
color
Sets the actor's color instantly. -
color
Transitions from the color at the time this action starts to the specified color. -
color
Transitions from the color at the time this action starts to the specified color. -
alpha
Sets the actor's alpha instantly. -
alpha
Transitions from the alpha at the time this action starts to the specified alpha. -
alpha
Transitions from the alpha at the time this action starts to the specified alpha. -
fadeOut
Transitions from the alpha at the time this action starts to an alpha of 0. -
fadeOut
Transitions from the alpha at the time this action starts to an alpha of 0. -
fadeIn
Transitions from the alpha at the time this action starts to an alpha of 1. -
fadeIn
Transitions from the alpha at the time this action starts to an alpha of 1. -
show
-
hide
-
visible
-
touchable
-
remove
-
remove
-
delay
-
delay
-
timeScale
-
sequence
-
sequence
-
sequence
-
sequence
public static SequenceAction sequence(Action action1, Action action2, Action action3, Action action4) -
sequence
-
sequence
-
sequence
-
parallel
-
parallel
-
parallel
-
parallel
public static ParallelAction parallel(Action action1, Action action2, Action action3, Action action4) -
parallel
-
parallel
-
parallel
-
repeat
-
forever
-
run
-
layout
-
after
-
addListener
-
addListener
public static AddListenerAction addListener(EventListener listener, boolean capture, Element targetActor) -
removeListener
-
removeListener
public static RemoveListenerAction removeListener(EventListener listener, boolean capture, Element targetActor)
-