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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

My pause game widget removes my compass widget?

My pause game widget removes my compass widget when i press the key and im am an amateur so any help i would be grateful.alt text

Product Version: UE 4.16
Tags:
pause.png (238.9 kB)
compass.png (293.9 kB)
more ▼

asked May 26 '18 at 11:49 AM in Blueprint Scripting

avatar image

JShockyy
3 1 2

avatar image Nebula Games Inc May 26 '18 at 05:44 PM

Can't help without a screen shot of the actual "Pause Game" function so I can see what it is doing.

avatar image JShockyy May 27 '18 at 11:53 AM

alt text The compass works up until i press the pause menu.

pause-menu.png (444.5 kB)
avatar image Nebula Games Inc May 27 '18 at 01:12 PM

I meant of the actual blueprint. What is going on in the blueprint when you hit pause?

avatar image JShockyy May 27 '18 at 03:12 PM

alt text

pausefunction.png (88.1 kB)
avatar image Nebula Games Inc May 27 '18 at 04:03 PM

Not sure why you don't want to show the "Pause Game" and "Unpause Game" functions.....this is my 3rd request to see the functions....you keep showing me the wrong stuff. I have added a screen shot of your screen shot below so hopefully we can get the right info up here haha Please take screen shots of the functions I circled in red. That is where your issue is

alt text

pause-game.jpg (195.3 kB)
avatar image JShockyy May 27 '18 at 05:40 PM

Sorry im new to the software and getting my head around game code + terminology alt text

pausefunction.png (219.2 kB)
unpausefunction.png (129.5 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

And there is your issue my friend. You call a node "remove all widgets". And that does exactly what you think it would. Your compass is a widget and so it gets removed when you "unpause" the game.

more ▼

answered May 27 '18 at 06:01 PM

avatar image

Nebula Games Inc
5.3k 27 9 14

avatar image Nebula Games Inc May 27 '18 at 06:04 PM

What I would suggest, create the pause menu in the level BP, store it as a reference there, and hide it. When you "pause game" set visibility of that widget to visible and go from there. When you click "unpause" set visibility back to hidden and continue on as before. This way you aren't adding and removing widgets each time you pause/unpause your game. It is a basic widget let it just remain available but hidden until you need it.

avatar image JShockyy May 27 '18 at 06:15 PM

alt text Thanks for helping me identify the problem, however i have another problem now so gonna have to start another thread because its unrelated :/

resolution.png (137.7 kB)
avatar image Nebula Games Inc May 27 '18 at 06:24 PM

Haha...is it related to this widget thing? Cuz you could just continue on here but up to you

avatar image JShockyy May 27 '18 at 06:27 PM

nah ive got two cutscenes and i need to find a way to tell the game to change level once the cutscene is complete and fix the fade in of both cutscenes, so i dont think its related.

avatar image Nebula Games Inc May 27 '18 at 06:28 PM

Haha fair enough, yea that would be a new thread.

(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