Problems with UMG countdown
I'm creating a simple umg countdown widget, but it doesn't seem to work. Herem take a look:
^The blueprint of my Pawn (BP_6DOF_Pawn), later referenced in the graph of the widget:
The BP_6DOF_Pawn_C is a variable type object reference. And here's the uneventful unlit preview window:
I appreciate all the help.
asked Apr 20 '15 at 03:42 PM in Blueprint Scripting
Doing a Delay in an Event Tick doesn't seem right to me.
The "right" way to do countdowns, is to determine a time at which the countdown is done. For example, on Event Begin Play, you might want to get current game time in seconds, and set the "target time" to that value + 3 seconds.
Then, inside Event Tick, you get the current game time in seconds, and subtract that from the target time. If the value is zero or less, you are "past" the time. If the value is greater than zero, you have that much time left. To display it, you probably want to round it using "ceiling" and truncate to an integer.
In Event graph of widget
Binding here to text box
answered Apr 21 '15 at 12:52 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here