Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14....

66
Chapter 1:Object Interaction with Blueprints Creating a project and the first level

Transcript of Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14....

Page 1: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Chapter 1:Object Interaction with Blueprints

Creating a project and the first level

Page 2: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Setting a template for a new project

Making sense of the project settings

Creating the project

2

Page 3: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Adding objects to our level

Exploring materials

Material Properties and Blueprint Nodes

3

Page 4: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

4

Page 5: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Adding substance to our material

5

Page 6: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Creating our first Blueprint

6

Page 7: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Exploring the Event Graph panel

7

Page 8: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Detecting a hit

8

Page 9: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Swapping a material

9

Page 10: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Improving the Blueprint

10

Page 11: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Adding movement

Changing actor mobility and collision

11

Page 12: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Storing data with variables

Readying direction for calculations

Getting relative speed using delta time

12

Page 13: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Translating existing location

Updating location

Changing direction

13

Page 14: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Chapter 2: Enhancing Player Abilities

Adding the running functionality by extending a Blueprint

Breaking down the Blueprint character movement

14

Page 15: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Customizing control inputs

15

Page 16: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Adding a sprint ability

16

Page 17: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Animating a zoom view

17

Page 18: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Using a timeline to smooth transitions

18

Page 19: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Increasing the projectile's speed

19

Page 20: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Adding sound and particle effects

Giving our targets state with branches

20

Page 21: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Triggering sound effects, explosions, and destruction

21

Page 22: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

22

Page 23: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Chapter 3: Creating Screen UI Elements

Creating simple UI meters with UMG

Drawing shapes with widget Blueprints

23

Page 24: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Customizing the meter's appearance

Creating ammo and enemy counters

24

Page 25: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Displaying the HUD

25

Page 26: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Connecting UI values to player variables

Creating bindings for health and stamina

26

Page 27: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Making text bindings

27

Page 28: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Tracking the ammo and eliminated targets

Reducing the ammo counter

Increasing the targets eliminated counter

28

Page 29: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Chapter 4: Creating Constraints and Gameplay Objectives

Constraining player actions

Draining stamina while sprinting

29

Page 30: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Using looping timers to repeat actions

30

Page 31: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Blocking actions with branch

Regenerating stamina

Preventing firing actions when out of ammo

31

Page 32: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Creating collectable objects

Setting up collection logic

32

Page 33: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

33

Page 34: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Setting a gameplay win condition

Displaying a target goal in the HUD

Creating a WinMenu

34

Page 35: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Displaying the menu

Triggering a win

35

Page 36: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Chapter 5: Making Moving Enemies with AI

Setting up the enemy actor to navigate

Expanding the play area

Making the level traversable with a Nav Mesh

36

Page 37: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Creating navigation behavior

Setting up patrol points

Enabling communication between assets

37

Page 38: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

38

Page 39: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Teaching our AI to walk with the Behavior Tree

39

Page 40: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Making the AI chase the player

Giving the enemy sight with Pawn Sensing

40

Page 41: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Adding conditions to the Behavior Tree

41

Page 42: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Creating chasing behavior

42

Page 43: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Chapter 6: Upgrading the AI Enemies

Creating an enemy attack

Making an attack task

43

Page 44: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Updating the health meter

44

Page 45: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Making enemies listen to and investigate sounds

Adding hearing to the Behavior Tree

Seeding the investigating tasks

45

Page 46: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Interpreting and storing the noise event data

46

Page 47: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Adding noise to the player's actions

47

Page 48: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Making the enemies destructible

Saving time by reusing existing Blueprint content

48

Page 49: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

49

Page 50: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Spawning more enemies while the game is playing

Managing spawn rates and limits with variables

50

Page 51: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Spawning new enemies in the Level Blueprint

51

Page 52: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

52

Page 53: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Creating wandering behavior for the enemies

Identifying a wander point with a custom task

Adding wandering to the Behavior Tree

53

Page 54: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

54

Page 55: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Chapter 7: Tracking Game States and Finishing Touches

Setting up a lose screen

55

Page 56: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

56

Page 57: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Creating round-based scaling with Save Games

Storing game information using a SaveGame object

Storing and loading the saved data when starting the game

57

Page 58: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

58

Page 59: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Increasing the enemy target goal

59

Page 60: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Create a transition screen to show between rounds

Transitioning to new round when current round is won

60

Page 61: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Pausing the game and resetting the save file

Creating a pause menu

Resuming and resetting the save

61

Page 62: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Triggering the pause menu

62

Page 63: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Chapter 8: Building and Publishing

Optimizing your graphics settings

Setting up our game to be played by others

63

Page 64: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

64

Page 65: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

65

Page 66: Chapter 1:Object Interaction with Blueprints · Breaking down the Blueprint character movement 14. Customizing control inputs 15. Adding a sprint ability 16. Animating a zoom view

Packaging the game into a build

66