Search in sources :

Example 1 with SpriteScaleTween

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

the class ScaleAction method run.

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

Aggregations

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