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"

I can Pause my game but how can I get it to unpause?

I came across the pause game node the other day. I've got it to where when I press "p" it pauses....but could someone talk me through having it to where if I press "p" again it will unpause?? thanks!!

Product Version: Not Selected
Tags:
more ▼

asked May 23 '14 at 12:47 AM in Blueprint Scripting

avatar image

AttemptD
1k 165 162 354

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello,

In the Details panel of the input node used to pause the game, there is a checkbox which allows you to use that action while the game is paused to un-pause it (see below).

alt text

-W

paused.png (8.8 kB)
more ▼

answered May 23 '14 at 01:41 PM

avatar image

DizzyWes ♦♦ STAFF
5k 145 64 206

avatar image AttemptD May 23 '14 at 05:03 PM

Ah. So simple. Thank you. :)

avatar image AttemptD May 25 '14 at 09:00 AM

ive...actually still had trouble with that....is there special way i'm supposed to set it up that tells "p" to unpause ONLY after it's been paused...I've set up a pause and an unpause but....nothing works.

avatar image Morakaze Jun 16 '14 at 05:55 PM

It's been a long while since this was posted, so hopefully you've found a solution to your issue. What I would do is make use of a boolean variable, I'll call it isPaused, in BluePrint. Default it to false. The first time P is pressed, check the variable to see its value. Since it is false, use a branch node and tell it to pause the game, and set isPaused to true. Set the input node, pressing P, to be able to be executed while paused. From the branch made earlier, make a line from true. Use that to unpause the game and set isPaused back to false. I haven't tested this yet, and as soon as I'm able I will try it out and post a screenshot of it in BluePrint, if it works.

avatar image Morakaze Jun 16 '14 at 06:10 PM

Just tried it, and yeah, it works. I suppose you could play around with the return value from the Set game Paused node, but this works.

alt text

pausegame.png (89.8 kB)
avatar image Xukapy Jul 23 '16 at 08:21 PM

Please use this next time

alt text

avatar image Dallan.Wood Jan 26 '17 at 05:26 PM

This was a huge help to me yesterday. I was doing the same thing as Morakaze and then saw the reply by Xukapy. Xukapy, would you walk us through the logic flow of your solution? It is working fantasticly but I am new to this and am having a hard time understanding why it works. Thank you in advance!

avatar image Travistyse Feb 26 '19 at 05:01 AM

Very simple (albeit very late) explanation: Is game paused returns true if paused, false if unpaused "Not" returns the opposite of its input - so true becomes false and false becomes true.

This happens because "not" only returns true when the input it receives is "not true" or false. Basically, think of it as an bool inverter.

In plain english, this says "Is Game NOT paused"

avatar image AttemptD Jun 19 '14 at 03:46 PM

YES!! I was sooooo close. Lol but this fixed my issue. Tha m.you greatly.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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