Search in sources :

Example 1 with SpriteRotateTween

use of com.bladecoder.engine.anim.SpriteRotateTween in project bladecoder-adventure-engine by bladecoder.

the class RotateAction method run.

@Override
public boolean run(VerbRunner cb) {
    SpriteActor a = (SpriteActor) World.getInstance().getCurrentScene().getActor(actor, false);
    SpriteRotateTween t = new SpriteRotateTween();
    t.start(a, repeat, count, rotation, speed, interpolation, wait ? cb : null);
    a.addTween(t);
    return wait;
}
Also used : SpriteActor(com.bladecoder.engine.model.SpriteActor) SpriteRotateTween(com.bladecoder.engine.anim.SpriteRotateTween)

Aggregations

SpriteRotateTween (com.bladecoder.engine.anim.SpriteRotateTween)1 SpriteActor (com.bladecoder.engine.model.SpriteActor)1