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. 

Press Any Key to Start - Call a HUD

Hello guys! I want to create a start screen. This is my WIDGET, when you click on PLAY, it calls a image who says "PRESS ANY KEY" then when the player press any key it would call a HUD, where the person can play or quit. I did this way so far but i think i'm doing it wrong. Can you guys help me please? ^^

alt text

Product Version: UE 4.18
Tags:
print1.png (172.4 kB)
more ▼

asked Nov 30 '17 at 10:24 AM in Blueprint Scripting

avatar image

GuaiamuStudio
87 5 9 16

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

2 answers: sort voted first

There are 2 ways. I will first show you the correct one (and easiest so far), using the PlayerController to handle the input:

alt text

And if you want to keep doing it in the widget blueprint: alt text

Just remember: The correct place to handle input is the Controller.

ueans11.png (42.2 kB)
ueans12.png (73.4 kB)
more ▼

answered Nov 30 '17 at 11:32 AM

avatar image

Unzkilled
310 3 7 10

avatar image GuaiamuStudio Nov 30 '17 at 11:40 AM

Hi there! Thanks Unzkilled! I will try when i'm home! :)

avatar image Unzkilled Nov 30 '17 at 02:46 PM

Sure! Just let us know if this worked and don't forget to accept the answer as correct

avatar image GuaiamuStudio Nov 30 '17 at 10:45 PM

IT WORKED!! Thanks!!!

avatar image LabbWrenthツ Jul 05 '18 at 08:35 PM

This didnt work for me...

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

Or you can just add a Get All Actors Of Class before you cast node and from the blue output Get(a copy) and branch it to object of your cast.

more ▼

answered Nov 30 '17 at 02:48 PM

avatar image

cppkyle
14 1 2 5

avatar image GuaiamuStudio Nov 30 '17 at 02:56 PM

Thanks japankairu! I will try it too! ^^

(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