Confused about Spine plugin

0 favourites
  • 5 posts
From the Asset Store
professionally animated character with Spine Pro !
  • So, I have a plugin called "Spine" and I ran SpinePluginTest project, which can be found here (it's called Sample Project):

    gritsenko.github.io/c3_spine_plugin

    And it worked perfectly fine. Construct 3 loaded the character perfectly and played animation based on the JSON script. So, I downloaded the JSON, Atlas and PNG from the project to import into my test project and it just didn't want to create the character. It produced this error in the console:

    Uncaught (in promise) ReferenceError: HTMLCanvasElement is not defined

    So I ran the debug on both projects and the only difference was that the Sample Project hosts on DOM while my project hosts on Worker. So I created a main.js script (default one, and as I was looking on how to see how to change to DOM host), ran the project and, suddenly, my project hosts on DOM and draws the character and does the animation just fine.

    Completely new to Construct 3 and I am terrible at JS (prefer C# and C++). Does anyone know why Spine plugin works on DOM and not on Worker?

    Tagged:

  • It's explained in the Spine Github documentation under Additional Spine project guidelines

    "Do not use worker mode for C3 (see below for details.)"

    https://gritsenko.github.io/c3_spine_plugin/

    Might wanna read through them entirely to not get more surprises :P

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It confused me since in "Current supported features" it says "C3 Worker mode support". Made me forget that they wrote before that it is not supported.

    Thank you very much.

  • Yes, sorry I will correct the documentation. There was a version of the runtime from the Spine API team which broke worker mode. There is a new version that _may_ have fixed the issue. I will try updating with that next week. Meanwhile, I will update the document to remove that 'feature' comment. Thanks for trying it out.

  • Thank you for creating the plugin! It works very well for what I am using it for.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)