Modifying an actor's collision shapes
Now that we know what collision shapes are, we can learn about modifying these shapes to meet our exact requirements.
Although the initial testing of our game demonstrated that the monkey can successfully traverse the jungle environment by running on the ground and jumping on the various obstacles that we created with tiles, there are some improvements to be made!
Note how the collision box around the leafy platform is larger than it needs to be; it projects far lower from the bottom of the platform than is necessary. This is likely to be annoying for players of our game, if the monkey jumps up when it is beneath the platform, it will bump the top of its head before it actually hits the platform. Even worse, the collision box around the monkey is also too large, which may lead to even greater frustration for our players.
To examine this problem more closely, test the game again, and make the monkey jump up when it is standing immediately beneath a platform...