# Issues with Delay in Game Over Screen

**URL:** <https://forums.unrealengine.com/t/issues-with-delay-in-game-over-screen/1270679>\
**Category:** Programming & Scripting\
**Tags:** delay, timer, unreal-engine, UI, question, Blueprint, set-timer\
**Created:** [August 24, 2023, 7:48am UTC](https://forums.unrealengine.com/t/issues-with-delay-in-game-over-screen/1270679 "2023-08-24T07:48:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Awoodude](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/awoodude/32/743569_2.png) [@Awoodude](https://forums.unrealengine.com/u/Awoodude)\
**Post date:** [August 24, 2023, 7:48am UTC](https://forums.unrealengine.com/t/issues-with-delay-in-game-over-screen/1270679/1 "2023-08-24T07:48:28Z")

</div>

Hi! I’m new to Unreal Engine, so this might be a bit of an obvious one, but I’m on a deadline and haven’t been able to find a solution by myself, any help would be appreciated.

I have a game over screen where a “you’re dead” type of image cutscene is supposed to pop up, be in the screen for 3-5 seconds, and then open up the game over UI system over the image. Trying to bake the delay in has proven to be difficult, and with this setup the cutscene just pops up under the game over menu.

None of the “Set Timer by…” nodes work, I even tried adding or replacing them with delay nodes but noticed no difference.

 ![UIproblem](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/4/0540cf2d53a56cd82f0be35cb6d5fb533ec4609a.png)

(_Game Over Cutscene Widget_ is the image I want to pop up first, _Game Over Widget_ is the UI system I want to pop up after it with 4ish seconds of delay)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 24, 2023, 7:59am UTC](https://forums.unrealengine.com/t/issues-with-delay-in-game-over-screen/1270679/2 "2023-08-24T07:59:23Z")

</div>

You destroy the actor first, so the rest of the code will not work. Destroy after the delay. This also hurts my eyes 😉 :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/b/0/1b02657c234e14ef30ad65e47f68c1346b61fd3c.jpeg)

Avoid doing things like this, it adds to confusion. `Create Widget` → `Add to Viewport`.

Your timers do not do anything, that’s not they work. You’d need to provide a function name that execute when the time is up.

* * *

Try this instead:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/7/b/77b9b9930ac42c29ab03abaefb8e83b0f00d448d.png)

---

<div class="post-metadata">

**Author:** ![Awoodude](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/awoodude/32/743569_2.png) [@Awoodude](https://forums.unrealengine.com/u/Awoodude)\
**Post date:** [September 2, 2023, 5:10pm UTC](https://forums.unrealengine.com/t/issues-with-delay-in-game-over-screen/1270679/3 "2023-09-02T17:10:17Z")

</div>

Wonderful! I suspected that destroying the self was the issue as well, feels good to have some sort of hunch about it haha. Thank you so much for your help!

I had to build a bit more to get the sound off loop, but the setup works perfectly now. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [October 2, 2023, 5:10pm UTC](https://forums.unrealengine.com/t/issues-with-delay-in-game-over-screen/1270679/4 "2023-10-02T17:10:49Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
