Adding sound and particle effects

Now that we have the player moving and shooting to our liking, let's turn our attention to the enemy targets. Shooting one of the target cylinders currently results in it changing its color to red. However, there is nothing that the player can currently do to destroy a target outright.

We can add more dynamics to our enemy interaction by producing Blueprint logic that destroys the target if it is shot more than once, while increasing the reward for the player by producing a satisfying sound and visual effect once the target is destroyed.

Giving our targets state with branches

Since we want to generate effects that will be caused by changes in state applied to our target cylinder, we have to ensure that this logic ...

Get Blueprints Visual Scripting for Unreal Engine 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.