Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by RomainT

Hi there,

In the game I work on, the character has various states and each state has its own dimensions.

The result at the moment is that my character is sometime far larger than he appears in game.

Here is my animations sheet (http://img97.imageshack.us/img97/9725/ninjacollision.png), with the collision box I want for the states.

How can I deal with that ? How can I have a collision box that fit well with the graphic ?

Thanks, have a nice day!

1 decade ago by Kxen

For the walking animation I would just keep the same collision box in the middle using offset, meaning the legs and stuff would not be part of it in some frames. As for jumping I don't see why you need to place the frame above the other frames so the same should apply there.

For crouching however I would actually change the collision box manually when this is triggered. There is some tweaking need to be done but basically you need to play around with the size, offset and pos to make it seamless.

1 decade ago by RomainT

The crouch is actually the problem. :)

To solve the problem, I use a second animSheet with the crouch frames. Then I don't use size and offset but standSize/crouchSize and standOffset/crouchOffset.

Good point for the jump frame. :)
Page 1 of 1
« first « previous next › last »