Easiest way to add a screen timer

I want to add a game timer for when i start my game, and make it pause when the game has ended. also i dont just want some super small text on the top left saying the time because it looks vague. which is the easiest way?. just a word saying something like ‘‘time: 4:20’’ will do

  1. Create a new GameState, GameMode and Widget Blueprint

  2. In the World Settings set the “GameMode Override” to your new GameMode

  3. In the GameMode set the “GameState Class” to your new GameState

  4. Create a float Timer variable in the GameState BP

  5. Create a text widget in the Widget BP and create a Binding to the Timer variable

77277-textbinding.png

  1. On BeginPlay in the GameState create a instance of your WidgetBP and add it to the viewport, On Tick subtract DeltaSeconds from the Timer variable

  1. Now you should have a working timer in the viewport as soon as you hit play

  1. If this helped you out don’t forget to accept it as the answer to this question

Thank you so much you just made my day. your explanation was perfect with the pictures and all

I tried following this but I have no idea how to create that Timer Hud widget in the GameStatetimer.png. I’m assuming without that nothing will work because I produced no results. Scratching my head for awhile now.

Right click and type “Create Widget” then select the widget you would like to create from the dropdown list on the node.

How do i create a widget blue print in 4.14.1 sorry still kinda new to this engine