June 2016
Intermediate to advanced
384 pages
8h 20m
English
Now we have a collectables base class, and we have a type of pickup item, which is the golden coin. But if we created an instance of it as a blueprint based on the CoinPickup class, it will not be collected, because there is no code to make the character (the Gladiator class) able to recognize the collectables.
So, inside the Gladiator class, I will be adding one function, OnCollectPickup(), and it will work as follows:
GetOverlappingActors() method of the gladiator collider in order to pick up anything that collides with the character right away. However, in order to store the data found, we will need something like a container for it.Read now
Unlock full access