Search in sources :

Example 1 with SpriteAlphaTween

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

the class AlphaAnimAction method run.

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

Aggregations

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