Search in sources :

Example 1 with SpriteTintTween

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

the class TintAnimAction method run.

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

Aggregations

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