Hello!
I am new to Unreal Engine and learning the program as part of a course I’m taking and for a final project we were tasked with making a game. In the game that I am making there is a countdown timer, starting from 1 minute (60 seconds) and counting down. However I have added an object in the game that grants the player extra time, + 15 seconds to the current time (say you had 50 seconds left, 50+15 =65 seconds), which was simple enough to do. The timer is displayed in minutes and seconds, but when the timer goes above 59 seconds I want it to be displayed in minutes again. Taking from my example above I want it to say 01:05 instead of 00:65 (which is what it’s doing currently). I have tried to fix this and look up tutorials to help but it still always displays 00:65. Any tips?
1 Like
maybe if you will do a check: if the seconds variable is > than 59 then it will display as a minute.
The engine comes with a bunch of timespan and datetime nodes. For example:
Prints what you need. Also, in case you were counting time manually, the timer actually already does what it says on the tin:
But there will be as many ways to make a timer as there are people, of course.
Were you to use the above-mentioned timer, the whole thing could boil down to:
I have done that and it still does not work sadly
Thank you for your help! This worked quite well!