UE4 Blueprints
Page 1
First in Series - On Hit Event
This is the first chart in a series that was used to implement the free Paintball Politics game.
This diagram illustrates one way to handle the built in Event Hit()
,
which responds when an element's hit by an object. In this example game, a
cube's hit by a paintball.
If the cube's already covered with paint, then tell the player, with text displayed in a text box. If the cube represents a Republican, then color it with a green material. If the cube represents a Democrat, then color it with a violet material. Later in this series, you'll see how to map a cube with paintball splatters over the photograph of a politician.
Notice the GameInst
is assigned as a target for the set function.
Game instances are useful for storing properties required througout the game.
In this case, either N Score Republican
or N Score Democrat
,
are retrieved from GameInst
, and incremented,
depending on whether a Republican or Democrat was hit.
Blueprints for Unreal Engine 4.25
This set of blueprints were prepared to explain
some techniques applied to the free
Paintball Politics
Game.
The game was originally on the Microsoft Store.
I built an MSIX bundle from the Unreal Engine Windows compilation.
Now you can play
Paintball Politics
online.