x

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. 

Create a Countdown timer to start a paused game?

Hi all!

I've been able to create a timer that will count up during my game, but have come to a cross-road in how to create a timer that will count down (at the very start of the game) to unpause my game which would be paused from the moment the player enters the levels, so something like this:

Player presses new game -> enters the game world -> the game world is to be paused -> a count down appears going from 5 and ending on 0 -> on 0 the game unpauses and the player and play.

I've tried a few methods like adding a delay to the Pause Game node then adding a time variable, but I can't get things to work. I do not know what 'logic' needs to be applied to get it to work... I am presuming it's pretty simple stuff, but I am blind to know what it is.

Any help will be greatly appreciated! :D

Product Version: UE 4.9
Tags:
more ▼

asked Oct 14 '15 at 08:03 PM in Blueprint Scripting

avatar image

FeaRxFuZioN
5 2 4 5

avatar image FeaRxFuZioN Oct 17 '15 at 08:23 PM

Anyone have any idea how to do this? I cannot figure it out. I've made a 'fake' timer that changes from 'ready' to 3 to 2 to 1 to 'go' that disappears, but can't even link that up to pause/disable input. Please help!alt text

fake timer.png (249.1 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first
more ▼

answered Oct 15 '15 at 02:07 AM

avatar image

Shadowriver
36.6k 931 169 1111

avatar image FeaRxFuZioN Oct 15 '15 at 09:09 AM

Hello again Shadowriver! The timer isn't the issue, it's having it unpause a paused game.

I've tried doing event-beginplay -> set game pause (ticked) then delay then set game pause (unticked) within the level bp but it doesnt work.

I've also tried doing character movement freeze in a similar way but that didn't work. I've tried doing this bp that someone got to work, but I couldnt get it past the delay (even with the bp set within the character).

So, as I said, my problem isn't* the timer itself, I can make that, the problem I am struggling with is setting the game to be paused on start, have a countdown that when reaches 0 unpauses the game. alt text

avatar image Shadowriver Oct 18 '15 at 07:57 PM

I think Delay might be a problem, use Retriggable Delay

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Utilities/FlowControl/RetriggerableDelay/index.html

Also don't use level blueprint for something like this, it seems you doing something that it's meant to work on every level, such code should be in GameMode insted

avatar image FeaRxFuZioN Oct 18 '15 at 08:20 PM

I got it working, it was something completely off the wall and unrelated to timers that got it working, I feel so stupid.... Ahh well, atleast I know more about UE4 now ahahahahah, thanks for the help !

avatar image thankstipscom Oct 19 '15 at 02:15 AM

close your question then please.

(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