canadaescortspage

Hello,

I am new to Spine, and love it. But since I am not programmer I am trying to figure it out if it is possible to do with coding in the runtime (cocos2d-x) to play an animation and when it is finished to loop it but just from frame 150.

I am creating an unorthodox children book, where the game is mainly like an animated movie. So I need to play one animation that contains an intro, and then when it is done, to loop but only from certain point.

Is it possible to do this in the runtime or even better in the editor and pass that info into the json?

Also I am wondering if I can have two animation of the same skeleton running at the same time, but one plays on loop mode and the other one just plays once.

And if so, would be possible to have the looped animation sitting on top with only one layer activated and the animation that plays just once with the rest of layer active?

Thank you very much.
canadaescortspage
  • Mesajlar: 1

Nate

canadaescortspage yazdı:I am trying to figure it out if it is possible to do with coding in the runtime (cocos2d-x) to play an animation and when it is finished to loop it but just from frame 150.
You can do this at runtime by setting TrackEntry animationStart and TrackEntry animationEnd. You could also break your animation into 2.
canadaescortspage yazdı:I am wondering if I can have two animation of the same skeleton running at the same time, but one plays on loop mode and the other one just plays once.
Yes, you can see this in the editor using preview.
canadaescortspage yazdı:would be possible to have the looped animation sitting on top with only one layer activated and the animation that plays just once with the rest of layer active?
Yep!
Kullanıcı avatarı
Nate

Nate
  • Mesajlar: 11863


Dön Runtimes