-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Unreal Engine 4.X By Example
By :

We have successfully created and integrated a power-up plugin and plugin module into our game project. Now we can utilize the functionality of this plugin to incorporate power ups in the Bounty Dash
project. We are going to have to create a way for the power ups to spawn, collide, and affect the game state of the Bounty Dash
character. Let's start by spawning the power ups.
Instead of creating a whole new spawner
object for power ups, we can augment one of our previously created objects to incorporate power-up spawns. As our coin spawner
already provides most of the functionality we require, we can modify this class. We are going to adjust this class so that every time a coin would be spawned, there is a chance that a random power up will be spawned in its place. We will start by modifying the class definition. Under the public section of the ACoinSpawner
class definition found in CoinSpawner.h
, add the following properties...