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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Want to cast a countdown timer to UMG

So I want to create a basic countdown timer which will display a game over UMG with restart as an option etc.

I have the integer set up and the UMG with the text but no idea how to tell the text on the UMG to begin counting or perform an action when it reaches 0.

Currently I have a pickup that should in theory begin counting however it's counting from an invisible timer as it doesn't reference the text on the UMG.

when picked up it cast's the text in the UMG to the screen and begins the invisible countdown.

How do i get it to affect the "120" in the UMG and make it begin counting down and then when it is = "0" to bring up a menu UMG saying game over.

Thanks very much, here are screenshots.



Product Version: UE 4.9
more ▼

asked Mar 16 '16 at 12:27 AM in Blueprint Scripting

avatar image

1 2 4 4

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Do you have a the timer variable binded to the text in the widget? To bind something to text simply click on the text and where you event enter the text to display there should be a bind button. Create a new one and it'll bring up a new function to bind something to the text. The way I would do it is to only store the timer variable in your timer widget event graph. On event tick, change the variable in the Timer widget that is binded to the text you want to change.

Here's an example of doing it on an overlap from the level blueprint: alt text

Binding variable to text graph alt text

NOTE: Event tick is not once a second, so you're timer would be counting down extremely fast. I used a 1 second delay to fix this. I also gave my timer a default value in the timer widget but you can assign the value before you start the timer as well if you want different values for different things.

timer bp.png (193.0 kB)
timerclassbp.png (44.6 kB)
more ▼

answered Mar 17 '16 at 06:52 PM

avatar image

178 10 8 21

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