Skip to content

Timer (count down with warning)



Create widgets called TimerWidget
image.png
Bind the text
image.png
set 2 variables:
image.png
Default value of Second variable to 60, milisecond to 10
image.png
Still in the widget, Go to event graph, create a new function called StarterTimer and:
image.png
image.png

Go to characater BP:
Event begin play node
image.png

Add count down warning:


In Widget, add text (render opacity set to 0)
image.png
Open animation box (bottom bar), +animation, name as WarningAnim
+Track, Add Text
image.png
Select the TextBlock in timeline, set render opacity to 0 on timeframe 0s, Add keyframe (right edge icon):
image.png
Set opacity to 1 on 1s, and 0 again on 1.5s
image.png

Back to Start Timer function, extend ending graph:
image.png

Want to print your doc?
This is not the way.
Try clicking the ··· in the right corner or using a keyboard shortcut (
CtrlP
) instead.