Skip to content

Instantly share code, notes, and snippets.

@MobiDevelop
Created August 28, 2013 14:15
Show Gist options
  • Save MobiDevelop/6366503 to your computer and use it in GitHub Desktop.
Save MobiDevelop/6366503 to your computer and use it in GitHub Desktop.
Scene2D Action Snippets
public static SequenceAction getClickActon()
{
SequenceAction action = Actions.sequence(
Actions.scaleTo(1.1f, 0.9f, 0.15f),
Actions.scaleTo(0.92f, 1.08f, 0.15f),
Actions.scaleTo(1.06f, 0.94f, 0.15f),
Actions.scaleTo(0.96f, 1.04f, 0.15f),
Actions.scaleTo(1.0f, 1.0f, 0.15f),
Actions.color(Color.RED, 1.0f),
Actions.fadeOut(2.0f),
Actions.removeActor());
return action;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment