Hello,
I'd like to use 'animation layering' feature, but it seems it doesn't work.
I've attached example. It's simplified Spineboy example with 2 simple animations of two boxes: 1) 'breathing' boxes 2) 'head' movement. When I play both animations on different tracks I expect boxes 'breath' and move 'head' at the same time, as it is in Spine Preview. (Please check my Spine Preview video here https://www.dropbox.com/s/megv124ayswthwn/breathing-boxes-preview.mov?dl=0 ) But only one animation is played. I've attached all source files.
Corona version: 2018.3326 (2018.6.25)
spine-lua version: May 1, 2019
spine-corona version: May 1, 2019
Runtime:addEventListener("key", function(event)
if event.phase == "down" and event.keyName == '1' then
print('animation 1')
character.state:setAnimationByName(0, animation1, true)
end
if event.phase == "down" and event.keyName == '2' then
print('animation 2')
character.state:setAnimationByName(0, animation2, true)
end
if event.phase == "down" and event.keyName == '3' then
print('animation layering')
character.state:setAnimationByName(0, animation1, true)
character.state:setAnimationByName(1, animation2, true)
end
return false
end)