Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to know if someone has already used Actions in the actors, and how to use them. I don't know how. I want to rotate an Actor.

share|improve this question
up vote 2 down vote accepted

The API is Actor.action(Action action), that will add an action to the Actor and it will be updated when Actor.act(delta) is called.

Here is an example code to rotate 90 degrees in 5 seconds a window:

Window window = new Window(...);
window.action(RotateTo.$(90, 5f));

This will automatically works if you have the widget on the Stage and you are calling stage.act(delta) correctly. Otherwise you will have to call Actor.act(delta) by yourself.

Hope it helps.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.