Think of something like Hollow Knight. It’s a spritesheet used to animate the player doing things like sliding or swinging a nail. As the nail swings the collisionobject has to move along with the spritesheet changes to register any hits the nail contacts.
What is the best way do achieve this in defold? And are there any examples out there?
Also as a character may slide the hotbox changes size along with the spritesheet changes. Some game a character can transform their body to skinnier as it slides, so those frames will need to have the collisionobject changed to match the skinnier body.
Thank you