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

Added oncomplete signal #54

Merged
merged 2 commits into from Jun 1, 2017
Merged

Added oncomplete signal #54

merged 2 commits into from Jun 1, 2017

Conversation

agoemans
Copy link

Added onComplete signal which is dispatched when animation ends.

@AleBles AleBles merged commit 561c85a into master Jun 1, 2017
@NeoHoffa
Copy link

NeoHoffa commented Jun 2, 2017

@agoemans / @AleBles ,

I have a request. Can you also add an onEnd signal as well that gets called when an animation is finished playing completely? The onComplete signal is great, but it gets called each time of the animation is looping.

My current work around is to do the following, but doesn't seem like the best use:

spine.state.tracks[0].onEnd = function() {

}

Or perhaps simply passing true or false to the onComplete signal dispatch to tell if the animation is currently loop or not.

spine.onComplete.add( function(isLooping) {
        
}, this);

Thoughts? Thanks!

@AleBles
Copy link
Member

AleBles commented Jun 6, 2017

@NeoHoffa, sure no problem

@AleBles AleBles mentioned this pull request Jun 6, 2017
@florisdh florisdh mentioned this pull request Jun 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants