The game file to import and load for this session is 5961_03_02.stencyl
.
We will use the following information to position the additional collision shapes correctly in step 3:
We've added two more collision shapes to the monkey actor to ensure that it can more appropriately interact with tiles and other actors in our game.
We can see that the collision bounds for the Idle Left animation now consists of three circles. Circular collision shapes were chosen for the monkey actor because they enable it to more easily slide off the edge of platforms and other obstacles. However, it's a good idea, when developing a game, to experiment with different collision shapes in order to achieve the best results for collision detection.
We can test the game now, if desired, but be aware that we have only made changes to the Idle Left animation. We still have to modify the collisions for the remaining animations for the monkey actor.
Before spending too much time refining the collision shapes for each of an actor's animations, it's a good idea to plan in advance and carefully consider the requirements for each animation. Also, consider the following tips, which could save some time!
The game file to import and load for this session is 5961_03_03.stencyl
.
We've configured the collision bounds for the monkey's Idle Left animation, but all the other monkey animations (Idle Right, Jump Left, and so on) need their collision bounds updated.
Update the collision bounds for each of the monkey's animations, taking note of the planning tips provided previously.
When all the monkey animations' collision bounds have been created and adjusted, we can save and test the game again. Be sure to thoroughly test to ensure that the collision shapes for the monkey are suitable for the environment; for example, if the monkey jumps into a small gap, can it jump out again, or will it become trapped?
We may need to move some objects, such as the log tiles, within the scene to ensure that the monkey can move around the scene freely. These are the types of problems that need to be resolved before a game can be released to the public, so don't be afraid to make changes to the collision bounds or to adjust the layout of the scene to account for any gameplay difficulties that are discovered during the testing process.
There should now be a great improvement in the collision-detection accuracy when the monkey collides with other objects and with most of the tiles, but we still need to do some work on the collision shapes of the leafy platforms.
3.145.177.115