• Editor
  • Events stop working

Related Discussions
...

Hello.

We were using Events to trigger Fx sounds. We are using cocos2dx and they where working no problem. But We upgraded to the newest runtime and spine version and now they stopped working.

I'm not sure if it is that we are missing now some lines of code. But I have noticed that I can't toggle on and off the events on the spine editor. Could this be the problem? I remember not long ago, I could toggle on the events but now I can't. The events always display the text on the animator mode, but on set up, I don't see any dot on the eye column. And even if click on the column nothing happens.

But even though on the animation mode the event name text flashes when playhead hits the keyframe, on our cocos2dx runtime the sound doesn't play back.

Did anything on the runtime or the lines of code regarding the events listener have changed? Sorry I am not the programer, just designer, but trying to understand why the events stopped working.

Thanks,

The visibility dot next to Events in the tree used to hide the dopesheet timelines and the text above the skeleton. In 3.6, we have a dopesheet filter you can use instead:

Image removed due to the lack of support for HTTPS. | Show Anyway


You can hold ctrl (cmd on Mac) to toggle selection of these items. If you deselect Event from the filter, event rows won't show up in the dopesheet or above your skeleton. Your event keys are still there, they are just not displayed.

I don't know why you don't see your events at runtime, but that is most likely separate from the dopesheet filter, which does not affect runtime behavior. Are you using the latest Spine runtimes? Does the spineboy run animation footstep event trigger?

FWIW, events are triggered as they should in our coco 2X example using the latest runtimes from the 3.6 branch on GitHub.