Monday, 29 October 2018

Game - Pause Game mechanic


In my game, I have been able to implement a game pause mechanic. This is a mechanic which is included in so many published game titles. It allows a user to temporary stop the game action, and resume the game when they wish to.

Blueprint:
Unreal contains a predefined action which allows the user to pause the game called Set Game Paused. The user will start to press the 'P' or 'Escape' key, to execute a  'Flip Flop' action. This will either 'Set Game Paused' to true, or 'Set Game Paused' to false. The Flip Flop node is used to toggle between two outputs.

Conclusion
I feel this was a simple and easy mechanic to incorporate into my game. In comparison to Unity, I feel this is an easier process. This is because Unreal has a pause game mechanic built into the engine. If I wanted to pause the game in Unity, I would need to set the time scale of the game to 0 secs, which might not be necessarily pause the game.