Example usage for com.badlogic.gdx.scenes.scene2d.actions AlphaAction setColor

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

Introduction

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

Prototype

public void setColor(Color color) 

Source Link

Document

Sets the color to modify.

Usage

From source file:com.spaceapps.liftoffgame.screens.GameScreen.java

public void rocketPlatformOnAnimation() {
    MoveToAction action = Actions.action(MoveToAction.class);
    action.setPosition(-100, 100);//from w ww.  ja va2 s .  com
    action.setDuration(1f);
    game.platform.addAction(action);

    AlphaAction action6 = Actions.action(AlphaAction.class);
    // action6.setRotation(90f);
    action6.setColor(Color.CLEAR);
    action6.setDuration(1f);
    game.platform.addAction(action6);
}