AboulEinein

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. AboulEinein

    Pixel perfect collision on animated spritesheet

    I did that, but my problem is that my sprite has animation so each frame has a different polygon thus collision detection should apply to the current frame in the animation. What I did is that I loaded all the polygons to the sprite body then with each frame change I disable and enable the polygons that correspond to that frame. But this is a very tedious and extensive solution, and I'm wondering if there's a better solution or if I'm missing something
  2. I have a sprite of a character moving and I'm trying to apply physics collide on it that when it hits a rock for example health is decreased. I managed to achieve collision but as rectangular shape of the image, what I want to achieve is the collision happens on the boundaries of the character itself. I used PhysicsEditor to generate the JSON file, but I'm still not sure how to use it to achieve pixel perfect collision. Any thoughts?