Going forward

Now that you have a base pickup class with one type of pickup, I suggest you do two more things: first, keep building different pickups that affect the character differently, for example, a weapon pickup, a health pickup, and so on.

Secondly, I would suggest you write a small class that places the pickups around the level. As you know, lots of games are based on randomness, but the majority of them are based on the design of the level. I mean, some games force us to put the collectables one by one around the levels at certain places, while other games are based on an algorithm or a system that places pickups all around the level.

Go ahead, find the best for you and do it. In Bellz, I was trying to show you the way, and I found it is ...

Get Mastering Unreal Engine 4.X now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.