gritsenko / c3_spine_plugin

Spine plugin for construct 3
MIT License
24 stars 8 forks source link

Add animation mixes #17

Closed gritsenko closed 4 years ago

gritsenko commented 5 years ago

We need to mix animations to make smooth transitions between them

MikalDev commented 4 years ago

How about at least adding ACEs to allow the setting of a default transition mix?

e.g.: stateData.setDefaultMix(x);

http://esotericsoftware.com/spine-applying-animations

MikalDev commented 4 years ago

Also requested by Artcadev: Mix feature from Spine, this is a really powerful feature that I often use on other runtimes from Spine2D, it basically allows you to blend between different animations, it is present both on editor as well in other runtimes such as Unity, Unreal and GMS2 I believe. http://esotericsoftware.com/spine-applying-animations#Mix-times

MikalDev commented 4 years ago

From spine-ts example transitions demo:

function createState (mix) { var stateData = new spine.AnimationStateData(skeleton.data); stateData.defaultMix = mix; var state = new spine.AnimationState(stateData); return state; }

MikalDev commented 4 years ago

Added property for default mix in release 1.5.0. Open new issue if other mix features are required.