Making the Lose Screen parametrized

Hi Guys,

I wanted to challenge myself a bit by making the lose screen displaying the actual value of RestartTimer instead of displaying a static number as shown in the lecture.

I will post here what I did in case someone else is looking for something similar.

  1. First create a new text node that will contain the value of RestartDelay:

Make sure the Is Variable is selected, and make sure to create a Bind for it as shown in the picture above.

  1. next you need to make a small change inside the ShooterPlayerController class to allow to read the variable from blueprints:

Just implement the new function by simply return the RestartDelay value.

  1. finally you can call this new function from blueprint by adding nodes to the event graph of the bind you created in step 1:

Hope this was useful :slight_smile:

4 Likes

This was so useful! Thank you so much for posting this!

1 Like

Thank you for this! I took it a bit further for funsies and added the countdown from Toon Tanks!

Privacy & Terms