Package tripleplay.anim
Class Animation.Shake
- Enclosing class:
Animation
An animation that shakes a layer randomly in the x and y directions.
-
Nested Class Summary
Nested classes/interfaces inherited from class tripleplay.anim.Animation
Animation.Action, Animation.Delay, Animation.Flip, Animation.Handle, Animation.Interped<R>, Animation.One, Animation.Repeat, Animation.Shake, Animation.Two, Animation.Value, Animation.XYValue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbounds
(float underX, float overX, float underY, float overY) Configures the amount under and over the starting x and y allowed when shaking.cycleTime
(float millis) Configures the shake cycle time in the x and y directions.cycleTime
(float millisX, float millisY) Configures the shake cycle time in the x and y directions.Methods inherited from class tripleplay.anim.Animation.Interped
bounceOut, easeIn, easeInBack, easeInOut, easeOut, easeOutBack, easeOutElastic, in, linear, using
-
Constructor Details
-
Shake
-
-
Method Details
-
bounds
Configures the amount under and over the starting x and y allowed when shaking. The animation will shake the layer in the rangex + underX
tox + overX
and similarly for y, thusunderX
(andunderY
) should be negative. -
cycleTime
Configures the shake cycle time in the x and y directions. -
cycleTime
Configures the shake cycle time in the x and y directions.
-