I have made a game that pauses the game when a trigger box is overlapped. I then have a widget appear and it says press the down arrow to quit to the main menu, among other things. However, when i press the down arrow in the game it does not quit the game. I have put below the blueprint as i am unsure what is going wrong:
Are you sure the actor in question is receiving input? If you add a print string between the keypress and the quit game, you can easily identify this:)
Gosh, that was an oversight😳 You’re ofcourse correct. Nothing to do with actors. Still getting it verified by a print string is usefull to see if the code is executed there in the first place.
LevelBP is third on the list of the inputstack for reference.
Put a breakpoint (F9) on the page down input event and see if it fires on keypress. Also try checking “Ignore platform restrictions”
To see this you also can’t be in the editor. You need to either:
run it in “Standalone Game” mode
pack the game and run the executable
I would also suggest not using predefined key inputs in the game. Better setup an input in the project settings and then call it’s event so it can be remapped in the future (direct is only suggestible for debug reasons)