June 2018
Beginner to intermediate
298 pages
7h 38m
English
Some developers prefer a capsule shape over a rectangle shape for sidescrolling characters. A capsule is a pill-shaped collision that's rounded on both ends:

However, while this shape might seem to cover the sprite better, it can lead to difficulties when implementing platformer-style movement. For example, when standing too near the edge of a platform, the character may slide off due to the rounded bottom, which can be very frustrating for the player.
In some cases, depending on the complexity of your character and its interactions with other objects, you may want to add multiple shapes to the same object. You might have one shape ...
Read now
Unlock full access