[Cocos Studio][2.0.5] New Feature, SpriteSheet Animation and Callbacks

2.0.5 comes with 2 new features

SpriteSheet animation (Flipbook Animation) support

Customize class and Callback support

Note: only customized class supports callback

Steps:

  1. Select Root Node and specify class name
  2. Setup callback events on child nodes.
  3. Follow the source code here
1 Like

Lovely!

I have a question considering the Callback support.
The example you provided is in C++. Could this be also achieved in lua without writing a single line C++?

Thanks!

I think It’s possible, the one I can think off the back is that you can create a custom class that will perform reflection in lua/js to invoke the callback, need more digging for a perfect solution.

Sorry to ask this, the last time i use cocos studio (1.3 i think :smiley:) i got a bug when import resources to cocos2d-x project (3.0 at that time).

The bug is when my game set content factor. It seems to me that it only scale the bone but no scale the image attached to the bone. Is this bug is still exist? or this is not a bug, and i must live with it

see this thread:

thanks in advance!

I’m not sure it’s been fixed or not
Can you create a new issue here? I think minggo will help you out.

Meh, I updated from cocos studio 2.0.2 to 2.0.5 and my project isn’t working anymore.

I am using cocos2d-x 3.3rc0 and lua. Do I need to update to 3.3rc2?

Thanks!

Yes, you should update to 3.3rc2 and re-export project

Question~

I updated cocostudio 2.0.2 to 2.0.5 and cocos2d-x 3.3rc0 to cocos2d-x3.3rc2.
And I republished cocostudio project.

sprite’s opacity action did nor work.
it’s not fadein action.
only Opacity 0% and 100%.

check please.

thank you

Could you create a bug for this? With steps to reproduce it.
https://github.com/darkdukey/Cocos-Studio/issues