0 Favourites

How do I get Spriter animation collisions to work?

  • I have an platform that I created a Spriter animation for so that it tips over when you jump onto it, but when I give the image a solid behavior the collisions only go half way up the image. The collision box is around the entire image but I am able to jump through the upper half of the platform.

    Anyone have any idea what is going on, or could this be a possible bug?

  • is the collision box the same for each frame of the animation?

  • I imported my animation from the program Spriter, it's not a construct 2 animation, are there different collision boxes for each frame of a Spriter animation?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • I assume you've watched this?

  • Yes I have, it doesn't have anything about collisions like this in the video.

  • A spriter animations is made of parts, Maybe be your "parts" have a wrong hit box, but I don't think it's a good idea to rely on Spriter animated "parts" hitbox, and I don't you can manage a correct collision system for the player with that many hitboxes moving.

    Since the wrapper sprite can't have a hitbox, I immediately prefered to make the whole Spriter animation stick to a single invisible sprite (with function Pin for example) wich is actually the real player controled sprite, then I can define a hitbox like usual. For sure this hitbox won't adapt to each different frame of the Spriter animation, this way you have to keep a "global" hitbox for this character, but is it really a problem ? This way, this is functionning just like usual in Construct 2, Spriter only take care of a visual animation.

  • That's what I was thinking I could possibly do, thanks for the input. I just found it weird that collisions work perfectly, even during the animation, on the bottom half of the sprite but not the top.

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