Jump to content

Respoding to Spine events


Recommended Posts

Greetings everyone,


I am using pixi.js for a game development project, and I'm importing animations created with Spine.

In order to correctly animate certain characters, I need to respond to Spine animation events. However, I can't find any way to add a listener for them.


Are they supported in pixi?



For example: when the character stops, I want the walking animation to also stop, but only once the character finishes the current step (i.e. not freeze instantly). The walking loop consists of two steps, and if this little "hack" isn't put into place, sometimes the walk animation keeps playing for a little bit (until completion) after the character has stopped, which looks quite bad.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...