How to create animation of change text in hud?

I want to create animated score text value.

I have HUD with text and I can set score using “set function”, its easy.

But I want to create animation of changing value.

Lets imagine current score is 0 and my player will pick a coin and I need to set score to 10. But I want to increase my textbox value in animation with 1s step.

How can I do this?

Remember that during the animation the score can increase again, so I need to STOP the previous animation and count the new score.

I tried to write a blueprint in HUD, but the problem is that you can’t use delay here.

Note: Mug is score value nad there is for each instead of while just for testing purposes

ScoreUp.zip (57.1 KB)

  • or space to increase score
  • or backspace to decrease score

Set animation speed inside of the widget parameter hooking into the delay node.

1 Like

Look really goood, thank you.

One question. I have created a bp widget in my project, but I can’t use the delay function. Why not? Also it is not possible to copy delay from your project to my project, am I missing something?

image

Looks like I created function instead of event. Now its ok

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.