Change bounding box for one specific animation

I have several animations for one sprite. I want to change the bounding box for one of the animations. However, when I do so, collision no longer works and the sprite falls out of the canvas. Is there a way of doing what I want?
Anne

Usually you have to adjust the body position also so the bounding box isn’t extending through the floor.

I have tried with set body size and offset, is that different from body position?

Offset will change the body position so I think that should work. Do you have physics debug on? Can you see where the bounding box goes before the sprite falls?

I figured out the problem I think. I changed the size and offset so the box for the specific animation was a little lower than the others, and because I had gravity.y set, the sprite just fell through the platform.
Thanks anyway for your always fast and and helpful comments

1 Like