Implementing advanced features for minimaps
In comparison to the simple minimap that we created in the last recipe, a more complex minimap features more detailed attributes, such as the shape of a minimap. In this recipe, we will make the minimap circular using masks. Also, you will learn how to add layers to hide various objects so that they don't feature inside of the minimap. This may be particularly useful if you want to hide specific objects and characters and even some locations throughout your game. Finally, we will look at how to add icons to the minimap, also through the use of layers.
Furthermore, in the There's more… section of this recipe, you can find other advanced features to implement in your minimap.
How to do it...
Since this recipe will teach you how to implement some advanced features in a minimap, it is assumed that the previous recipe for creating a minimap has been completed. However, you don't have to follow the entire recipe. You can also take ideas on how to improve...