I’m a newbie working off the FPS example, and could really use some help creating messages that show at the start and end of each game.
Basically I would like to display messages at the start like “Hit SPACE to begin”, and another at the end with “Press R to restart”.
I’ve already got the widgets done, but I have no idea how to script them right in Blueprints. I don’t know how to keep gameplay paused while the messages are shown, and I can’t seem to call key events within the widget blueprint either.
You can create a separate level for your menu. On its Level blueprint Beginplay event “Create widget”. Add key event, and use “Remove from parent” in same level Blueprint. After that Open new level.
Sorry, it doesn’t seem to work for me. Hitting the key just restarts my game.
Here’s my Level Blueprint, which looks identical to your example. I had to link the widget reference Set to Add To Viewport otherwise I was getting a compile error.
I’ve created an empty level for this blueprint, but encountered several issues in doing so.
Unless I hit the key quick enough to load my map level, it quickly goes through to my end condition instead (basically quitting the game directly from the start screen).
This method also causes errors with Blueprint references in my Game Mode blueprint.
I just really want a simple message to appear at the start before the level begins, and another when it ends… Is this possible in UE4 at all without having to go through such workarounds?