• Runtimes
  • Construct 3 Spine runtime released

Related Discussions
...

@MikalDev i was able to access the skeleton json and just manually parse it, but thank you

anyway, if you or anyone else could help:

  1. i'm playing around with the mix and match sample spine project. can we dynamically create a spine object? i tried but it seems the skin isn't changing

  2. how do i resize a spine object (skin) so that the whole thing is within the bounding box? set size allows me to change the size, but it doesn't guarantee the whole skin is displayed and not cropped out

MikalDev

thank you, here's the link to the sample project file i'm trying to play around with: https://sendgb.com/sJzyiRp7vYN

basically, i'd like to be able to dynamically create a new spine object during runtime each with a different "skin" (example: backpack, bag, scarf, etc.) when i press A

i dragged 1 spine object in the editor and set the default skin to "accessories/backpack"

during runtime, when i press A, i create an object then create and set a custom skin "accessories/scarf", but somehow the new spine object created still has the original skin i set in the layout editor which is the backpack. i've also tried directly doing "set skin accessories/scarf" instead of creating a custom skin, got the same result.

    zmpq - answered in another thread (needed to wait until Spine object was loaded before operating on it.)

    @MikalDev
    oh wow thank you for this, finally got it working

    i still haven't completely figured out fixing the cropped image if the initial skin for a spine object is smaller than the skin set for a new dynamically created spine object

    kindly check if you don't mind: sendgb.com/JQ9lX5TnLAr

    thank you

    sorry for double posting in two forums, take a while for the mods to approve my post in the construct forum

    9 mjeseci kasnije

    @MikalDev any hopes to get an update that fixes support for the playable ad C3 export? When you export as a single file with base64 assets, the plugin can load the PNG for Spine from the base64, but the .atlas and .json always 404 as the atlasURI and jsonURI are trying to look for the actual file itself instead of using the base64 string in self.c3_base64files.