• Runtimes
  • Same animation but different display.

Hi. I am developing game using pixi.js v.8 and Spine. My Spine animation sometimes looks correct, but other times the exact same animation appears wrong (for example, it looks like the vertical version when I’m definitely in landscape mode). I double-checked the animation name in my code, and it’s always the same. What could be causing this inconsistent behavior?

  • Davide님이 이에 답장했습니다.
    Related Discussions
    ...

    The inconsistent display of your Spine animation in pixi.js could be due to several factors. One possibility is that the viewport size or position is not consistent, which can affect how the animation is rendered. Ensure that you are using the same viewport size and position for all animations to maintain consistency. Another potential issue could be related to the rendering settings or the way the animation is being triggered in your code. It's important to verify that the animation is being set correctly and consistently in your game logic. If the problem persists, consider providing a minimal example or your assets for further review to identify any other underlying issues.

    catsheue

    Hello catsheue 🙂

    As Spinebot mentioned, several factors could cause the behavior you described.
    However, it's difficult for us to determine what's actually happening or identify the cause based solely on your description.
    As a first step to rule out any trivial issues, please check whether you're using the latest version of spine-pixi-v8 along with the corresponding asset export version from the Spine Editor. You should be using 4.2.87 for spine-pixi-v8 and 4.2.43 for the assets.

    If you're already using the latest versions, we'll need to see the code you're working with. Ideally, you could share a minimal example that allows us to reproduce the issue. If you're unable to share it publicly here, feel free to email it to us at: contact@esotericsoftware.com