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"

How to display countdown timer on widget?

alt text

The function at the moment is empty. I want the timer to start at five minutes and countdown until zero. I've been able to make a timer in the first person HUD blueprint, but have not had success casting it in the widget below. Is there an easier way?

Product Version: UE 4.11
Tags:
more ▼

asked Jul 12 '16 at 05:35 PM in Blueprint Scripting

avatar image

CDP Productions
26 6 9 13

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

By using something similar to this post you can achieve a UMG Timer : https://forums.unrealengine.com/showthread.php?2389-Game-time

http://puu.sh/80r5M/88ec570ed1.jpg

You want to create a float variable that you can later convert to an integer and name it Time Subtract the default value of that you set from the ticks delta seconds and set the new time to equal that.

Then in your widget use a set text node and convert that into text.

more ▼

answered Jul 12 '16 at 05:44 PM

avatar image

ENP
151 7 4 6

avatar image CDP Productions Jul 12 '16 at 05:49 PM

That's the picture I copied but I don't know how to make it display on the widget

avatar image ENP Jul 12 '16 at 05:51 PM

http://i.imgur.com/G29wAJf.jpg

Using "set text" Turn your text block into a variable as well

avatar image CDP Productions Jul 12 '16 at 05:57 PM

So instead of making it in the first person HUD blueprint, I should make it in the widget itself?

avatar image ENP Jul 12 '16 at 05:58 PM

Correct handle this in the widget / UMG

avatar image Heidi Jul 12 '16 at 06:00 PM

To the right of where you could manually write your text in the textwidget you have bindings. Create a new one and return the remaining time float as a string.

(comments are locked)
10|2000 characters needed characters left
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