Display score with widget on blueprint level
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 function
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!
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
Then call the dispatcher on it (from another custom event that you call when someone scores)
And here's the result
answered Jun 04 '17 at 09:03 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here