Hi Nate, thanks for the reply.
I've created a working example of this issue using dragon and goblins with the same outcome.
Our project consists of multiple scenes which need to each call new spine instances and animations. We needed a module library so that it was easy to load a model, call animation and setup event, onComplete and onEnd functions within each page that the spine.json would call. This all works fine, we can get multiple spine objects on screen and they do call onComplete and onEnd. But there are two issues:
- For the first run, onComplete and onEnd and onEvent call immediately. We have got a work around in the library module (called "spineTrigger") where if firstRun is not the case then call them the next time around.. works ok but obviously need to get to the root of the issue.
- onEvents don't work like onComplete and onEnd do - it comes up with the above error.
Here is a link to a zip of the required files to take a closer look at what is happening.
https://dl.dropboxusercontent.com/u/144 ... neTest.zip
When you run you will see dragon and goblins printing "onComplete" to the console to show the process working fine. dragon.json for instance is not using an onEvents. There is another dragon.json in a folder called events. If you substitute that one you'll get the event error.
Everything is very basic code and well commented but do let me know if you need any clarity on how the files are set up.
Hi Nate, any eta as to when you could take a look at this?
In summary - I've provided a link to a spine library module I'm developing that allows more than one spine skeleton and can be called very simply from any lua scene. It works well except all events including onEnd and oComplete fire as soon as the module is called plus onEvents are not working with error given in first post of the thread.
Did you see this: http://www.sitepoint.com/2d-animation-t ... bile-apps/ A nice intro to Spine for Corona. Be good to see some more indepth articles which really shows what could be done with the Corona runtime.