x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Pause and unpause issue using widget menu button and gamepad button or keyboard button

Hello I made a widget pause menu that can be accessed by pressing a keyboard key or a gamepad button, I'm using a FlipFlop function so when you press a key, the game is paused and opens the widget menu (FlipFlop A) and if you press it again it unpauses the game and removes the widget from parent (FlipFlop B), this works as it should.

The menu widget has a resume button so when you click on it, it removes the widget from parent and then unpauses the game (same as in FlipFlop B) this also works but the problem is when you try to pause again, you need to press 2 times the pause key because the FlipFlop state doesn't change when you use the widget menu resume button.

Do you guys know another way of doing it so I can get this working?

Thanks

Puse/unpause + open menu (Level Blueprint)

alt text

Widget menu button:

alt text

EDIT: I'm feeling DUMB right now

SOLUTION

Branch + IsGamePaused function. Ignore SetkeyboardFocus

alt text

Product Version: UE 4.10
Tags:
more ▼

asked Nov 28 '15 at 11:53 PM in Blueprint Scripting

avatar image

ANTONIOPS
1 1 3 6

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

Solved, see main post.

more ▼

answered Dec 01 '15 at 07:27 PM

avatar image

ANTONIOPS
1 1 3 6

(comments are locked)
10|2000 characters needed characters left

Here is mine. This may help you:

alt text

capture.png (183.6 kB)
more ▼

answered Nov 29 '15 at 03:51 AM

avatar image

ShrewGlue
419 97 83 106

avatar image ShrewGlue Nov 29 '15 at 03:52 AM

ALSO:

If you CAN pause it and CANNOT unpause it, it could be that you have consume input when paused turned off for your events.

I would double check that.

avatar image ANTONIOPS Nov 29 '15 at 08:45 PM

Hello thanks for answering, I can pause and unpause without problems, the problem is that I'm pausing and unpausing the game from 2 different blueprints, the level blueprint and a widget blueprint (menu) so if I press ESC it pauses and if I press it again it unpauses and I can pause again and unpause without any problem but if I press ESC and then press "resume" on the menu it unpauses but the FlipFlop stays on A because I didn't press the ESC key so if I want to pause again I have to press ESC again to run FlipFlop B (unpause, but it's already unpasued because "resume" did it, so nothing happens) and then again to go back to FlipFlop A that pauses the game. I need something that resets the FlipFlop on the level blueprint back to the A state when I click on the "resume" option in the widget menu blueprint or maybe use another system.

EDIT: Nevermind xD I just found the isGamePaused function I will edit my question and include the solution. thanks for your help and time.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question