Spriter/C2 - (9-16-2019 - bug fix)

From the Asset Store
Rotate & Animation for 16 Direction & Mouse Direction
  • hi lucid

    when i use spriter on my project(just add a roguelike plug-in ),

    will get a javascript error on game run.and black screen.

    the alert is:

    Uncaught TypeError:Cannot read property "length" of undefined

    http://localhost:50000/Spriter_plugin.js,line 3930(col48)

    how can i fix it ? thank a lot

    Really need this functionality, ask you for help,thank a lot

  • corpvs2, can you please send me () a minimal capx that reproduces the problem? Also, please link to the roguelike plugin you're referring to and any other plugins needed to run the capx. Also, do you happen to know if it still gets this error when added to a new blank capx with just the Spriter plugin? If it does, please also send me the zipped Spriter project if possible so I can troubleshoot the import.

  • lucid

    thank for help!!

    i send the capx file to you email

    the spriter plugin working fine on blank capx.

    when i add a roguelike object will be have this issue .

    the plugin url is:https://www.scirra.com/forum/roguelike-plugin-c2-rot-js-interface_t118452

  • corpvs2 , it looks like the roguelike plugin adds some components to the javascript array object, and that was causing issues with some of the loops in the scml plugin. In any case, I changed the loop iteration method so it should no longer be affected. Please redownload here, and let me know if it solves your issue.

  • lucid

    hi,thank you so much,is working fine!!

    I don't know how to thank you, that's amazing!!!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks lucid , the new features (color palette and export palette-changed new project] really help me out in diversify the amount of customization available in my game by making it incredibly easy to create color swapped clothing and skins.

  • Hey lucid I Saved my project as Resized Project (and images) but whenever I import it to Construct 2 it becomes disarranged and I also notice some quality loss. Know any solution. I use Spriter Pro Release 5.

  • , Make sure you're importing the images and the scml from the new folder, and make sure both the scml and scon are created from the resized project. Does it do this on a new c2 project?

  • lucid - That's what I did, I tried it many times in various ways even in Spriter Pro Release 7. I am using the latest Construct 2 Stable Release (r227). I hope you can find a solution for this. Thanks in advance, btw spriter is really great but still has some minor bugs.

  • did you try importing it before the resize, and did that work correctly? Also, would you mind sending me () a zip of the Spriter project , so I can try and figure out what's happening?

  • lucid - Yes I also tried that but still the same negative result. I also mailed you the spriter project. Kindly check it.

  • - I looked into it, and indeed that file has an issue. After resizing it keeps the old image sizes in the project file. Strangely it only happens with that project, and not other files I tested resizing and importing into C2. While I haven't found the cause yet, I do have a solution. If you load the resized scml file into Spriter, and then resave the scon and scml (see below), it will import correctly into C2. Please let me know if you have any issues.

    everyone, by the way, I think I may have forgotten to mention this on this forum when it was released, but there's an extra save option in Spriter now under Custom Save Options. It allows you to have Spriter always automatically save (and automatically overwrite) an scml file every time you save a scon file, which is convenient for C2/Spriter projects.

  • lucid - Yes. Thanks, the workaround does work. It worked when I clicked that checkbox to automatically save the project and even when I save it manually it finally works.

  • lucid - Hello lucid. Do you know an efficient way to preload scml objects because I experience delay of the scml object to show up when the layout has just started or the object has just been created. Do you know any efficient workaround. Thanks.

  • lucid - Hello lucid. Do you know an efficient way to preload scml objects because I experience delay of the scml object to show up when the layout has just started or the object has just been created. Do you know any efficient workaround. Thanks.

    Until lucid gets back to you, I just have a fade-in after a one or so second wait at the start. Also, if I'm not mistaken, I think the load-in is only for the first time that run, so I suppose you could go through a blacked-out dummy layout at the beginning to get them all going in memory before you go to your regular layout.

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