Example usage for com.badlogic.gdx.scenes.scene2d.actions ParallelAction ParallelAction

List of usage examples for com.badlogic.gdx.scenes.scene2d.actions ParallelAction ParallelAction

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d.actions ParallelAction ParallelAction.

Prototype

public ParallelAction(Action action1, Action action2) 

Source Link

Usage

From source file:com.jmolina.orb.widgets.game.Fragments.java

License:Open Source License

/**
 * Devuelve una animacion de destruccion para un fragmento
 *///from  ww  w  . j  ava 2 s  .c o  m
private Action getDestructionAction() {
    return new ParallelAction(Actions.rotateBy(randomAngle(), ANIMATION_TIME),
            Actions.moveBy(randomDistance(), randomDistance(), ANIMATION_TIME));
}

From source file:es.eucm.ead.editor.view.builders.scene.groupeditor.GroupEditor.java

License:Open Source License

/**
 * Sets the root group in its initial position, fitting the view
 *//*from w w  w  .j  av a  2 s.  c  o m*/
public void fit(boolean animated) {
    if (animated) {
        sceneContainer.addAction(new SequenceAction(
                new ParallelAction(Actions.moveTo(0, 0, TIME, Interpolation.exp5Out),
                        Actions.scaleTo(fitZoom, fitZoom, TIME, Interpolation.exp5Out)),
                Actions.run(containerUpdated)));
    } else {
        sceneContainer.setPosition(0.0f, 0.0f);
        sceneContainer.setScale(fitZoom, fitZoom);
        fireContainerUpdated();
    }
}