August 2019
Intermediate to advanced
380 pages
9h 17m
English
The final element of stamina and sprinting we'll create is background stamina regeneration, so that the player has a way of recovering from running out of stamina. To accomplish this, we'll be taking advantage of the Event Tick trigger to increment the player's stamina gradually:

To create the Event shown in the preceding screenshot, start by finding some empty grid space and add an Event Tick node. Attach a Branch node to the Event Tick node's output execution pin. Drag the Is Sprinting variable onto the Condition pin to create a GET Is Sprinting node that is attached to the Branch node.
As Event Tick fires each frame, ...
Read now
Unlock full access