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"

Display score with widget on blueprint level

Hi everyone!

I have a simple request (I think). I want to display my score on my screen using a widget. I know this question has been brought up multiple times but for all the tutorials I went trough, they where all communicating trough the ThirdPersonCharacter and they were using Castings and I just don't understand it.

I am not using any game pawns, it is a game where we press keys to answer questions and if it is true, a point is added. Pretty much everything is setup in my level blueprint. I binded my text score to a functionalt textalt textalt text

So far, I managed to display the widget on screen but it is stuck on 0 and won't increment. What can I do about it?

Thank you for your time!

Product Version: UE older version
Tags:
more ▼

asked Jun 01 '17 at 03:54 PM in Blueprint Scripting

avatar image

flynneastwood
24 5 7 8

avatar image Cirtdan Feb 04 '19 at 10:15 AM

How can i save HUD as variable?

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

1 answer: sort voted first

So you have created an event and bound it to an event dispatcher. Now you need to call that event dispatcher. For that you should save the widget you created in the last screenshot as a variable, and call an event dispatcher on it.

In your level blueprint save the HUD as a variable after creating it

alt text Then call the dispatcher on it (from another custom event that you call when someone scores)

alt text And here's the result

alt text

savinghud.png (80.7 kB)
result.png (42.1 kB)
more ▼

answered Jun 04 '17 at 09:03 PM

avatar image

Irakli
458 15 6 25

avatar image flynneastwood Jun 06 '17 at 07:59 PM

At last! Thank you! It worked! :D

avatar image Cirtdan Feb 04 '19 at 10:16 AM

How can i save HUD as variable?

(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