December 2017
Beginner
290 pages
7h 17m
English
Our character will travel through the level. We will add the ability for them to collect stuff such as coins.
Our character can also be killed by obstacles. To make this work, we will use the built–in Unity physics and write some easy-to-use classes.
Both collecting coins and getting killed by obstacles are initially developed the same way, and that is why we are referring to both actions in the same topic.
If you search in the Unity reference documentation for MonoBehaviour, you will find some useful methods called automatically by Unity physics, such as OnTriggerEnter and OnCollisionEnter. I don't want to go into too much detail on how this will work, but I want you to understand the principle:
On the left-hand ...
Read now
Unlock full access