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"

How to display end game menu in blueprint?

I'm creating a rather simplistic side scroller with a mix of C++ and Blueprint, and need help switching menus.

more specifically, i've created a function in C++ which replaces menu widgets(with help from the C++ UMG tutorial) and am trying to, when a "Death box"/"Win box" is entered, call this function to replace the HUD with this menu/screen and display a specific type of text(game over/ you win, etc).

so what i've tried doing is calling this function to replace the menu when the death/win boxes are entered, but this seems to have no effect whatsoever.

what am i doing wrong here(screenshots below)?

instead, would it be advisable to call this function when a specific game mode is hit, rather than when these boxes are entered? if so, how?


end game menu(BP) alt text

death box(i've removed a similar implementation from the win box until i know how to properly handle this behaviour).

alt text

Product Version: UE 4.17
end-game-text.png (221.2 kB)
death-box-1.png (278.9 kB)
more ▼

asked Feb 12 '18 at 06:25 PM in Blueprint Scripting

avatar image

8 1 8

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

1 answer: sort voted first

i would just remove the old widget then create the new one. since its the end of the game you wont need the old hud ui so it doesnt matter if its gone.

more ▼

answered Feb 13 '18 at 12:09 AM

avatar image

10.1k 33 10 23

(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