Smooth Transition between Animations in Dragonbones?

Smooth Transition between Animations in Dragonbones?
0

#1

I’m using DragonBone for skeleton animation…
I can switch between ‘IDLE’ and ‘WALK’ cycle with the following code

onLoad(){
var skeleton = this.node.getChildByName('skeleton').getComponent(dragonBones.ArmatureDisplay);
}
update(){
if(pressed right/left key)
skeleton.playAnimation('run');
else
skeleton.playAnimation('idle');
}

but how I can switch between these two animations smoothly like it should not be sudden transition, there should be some kind of tween between two types of animations

Have a look at this video