Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cocos2dx] No setEmptyAnimation and addEmptyAnimation in SkeletonAnimation class #807

Closed
chriship opened this issue Dec 19, 2016 · 4 comments
Assignees

Comments

@chriship
Copy link

The documentation for the runtimes states that there is a setEmptyAnimation method and a addEmptyAnimation method for use with clearing the animations. The cocos2d-x runtime doesn't seem to have these methods.

@pharan
Copy link
Contributor

pharan commented Dec 19, 2016

That was added in the new Spine AnimationState in 3.5.
https://github.com/EsotericSoftware/spine-runtimes/blob/master/spine-c/spine-c/src/spine/AnimationState.c#L668

You may be using an older runtime.
You can read the instructions here on how to update to the new one: https://github.com/EsotericSoftware/spine-runtimes/blob/master/spine-cocos2dx/README.md

@chriship
Copy link
Author

Ah ok, yes looks like I am using an older runtime.

@chriship chriship reopened this Dec 19, 2016
@chriship
Copy link
Author

Just looked into this a bit more - it looks like those methods were added to AnimationState.c but the SkeletonAnimation.cpp has no reference to them.

@pharan
Copy link
Contributor

pharan commented Dec 19, 2016

Ah, you're right.

@pharan pharan changed the title No setEmptyAnimation and addEmptyAnimation in cocos2d-x runtime [cocos2dx] No setEmptyAnimation and addEmptyAnimation in SkeletonAnimation class Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants