Key binding

We are now going to bind a key to open up the pause menu, and only allow this to happen when the player is not in battle (in other words, the player is out in the field). Since we already have a FieldPlayer set up from the previous chapter, we can easily create actions within our FieldPlayer Blueprint class that will control our pause menu. To start, navigate to Blueprints | Open Blueprint Class… | FieldPlayer:

Key binding

At this point, we are going to want to have the pause screen pop up when the player presses a key; in this case, we will use P for pause. To do this, we will first need to create a key event that will fire off a set of actions ...

Get Building an RPG with Unreal 4.x 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.