3D Gallery with Great Artwork Imagine Logo with Three Colors Beach Cabin 3D Android Tablet with Different Screens Studio Apartment Red Figured Greek Vase on Blue Background Silver and Gold Flashlight Lake on Fire

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.

Assign Game Instance Variable

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.

Tags
Windows development, Visual Studio, Windows 10 programming, Unreal Engine, Game development, learn to make games, game code, learn online, free code, free 3D game, free game, 3D programming

Ads >
Create 3D Games: Learn WebGL Book 2 Simple Shaders: Learn WebGL Book 4
3D Programming for Beginners: Learn WebGL Book 1

for Web graphics!

Copyright © 2022 Amy Butler. All Rights Reserved.