Makoren

I'm currently developing a game in GameMaker Studio 2. I exported a simple skeleton with 2 animations, one which is a completely blank "idle" animation, and a sword swing animation called "attack".

When exported to GMS2, the "attack" animation works, but the "idle" animation doesn't. Both animations have the Export option checked.

Strangely enough, I also have an animation with the exact same skeleton and animations, but a different image, and it works fine.

Here's the JSON of the working animation: https://hastebin.com/xesisigeva.json

And the JSON of the animation where only "attack" works: https://hastebin.com/rovaluvose.json

I'm assuming I'm doing something wrong in Spine, which is why I'm asking here and not in GameMaker support. The GameMaker code used to switch animations is simply skeleton_animation_set. The first animation in the list is played by default.

Is there anything I could be missing?
Makoren
  • 記事: 2

Søren

I'm afraid the links you posted are both empty so I can't say for sure what the problem is.
When exported to GMS2, the "attack" animation works, but the "idle" animation doesn't. Both animations have the Export option checked.
What do you mean by the "idle" animation not working. Is it not starting?

Did you key all bones at frame 0 for the "idle" animation, or is it a completely empty animation with no keys?
アバター
Søren

Shiu
  • 記事: 2396

Mario

Please note that GMS2 implements their own Spine Runtimes, so you might after all have to ask them for support as well. Also make sure that you export your JSON files with the Spine Editor version supported by the GMS2 version you use. I tried to check which Spine Editor version they support, but failed to find that info in their docs. Please ask on their forums as well.
アバター
Mario

Mario
  • 記事: 2268

Makoren

Shiu さんが書きました:What do you mean by the "idle" animation not working. Is it not starting?
The "attack" animation plays instead, as if there wasn't an "idle" animation at all. I have tried printing the list of animations to the GameMaker console, and both "attack" and "idle" show up.

I'll try linking the JSON file through Pastebin this time, this is my latest export using your suggestions (keying all bones at frame 0): https://pastebin.com/HGv4yVr0
badlogic さんが書きました:Please note that GMS2 implements their own Spine Runtimes, so you might after all have to ask them for support as well. Also make sure that you export your JSON files with the Spine Editor version supported by the GMS2 version you use. I tried to check which Spine Editor version they support, but failed to find that info in their docs. Please ask on their forums as well.
Thanks, I'll ask them just in case.

The required Spine runtime version is version 3.7 for GMS2 version 2.2.2 and above. I'm using 3.7.94 and 2.2.5 specifically. I found that information here: https://help.yoyogames.com/hc/en-us/articles/227860547-Required-SDKs
Makoren
  • 記事: 2


Return to Editor