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"

How to create a chronometer in blueprint?

I'd like to create a timer in minutes/seconds/hundredths, which begins when the player starts the game and stops when the player dies. Is it possible on blueprint? And if is it possible, how could i do that? thanks

Product Version: Not Selected
Tags:
more ▼

asked Jun 20 '14 at 11:34 AM in Blueprint Scripting

avatar image

PierreMaux
28 8 10 64

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

I made a 24 hour clock tutorial in my notes which might include elements that bear on your chronometer case: http://goo.gl/jEHT0u p. 40

I think hundredths might just use ... a 0.01 Delay duration float (rather than 1 second in the tutorial).

more ▼

answered Jun 20 '14 at 12:08 PM

avatar image

tomofnz
1.1k 46 47 87

avatar image PierreMaux Jun 20 '14 at 02:38 PM

I hope I will make it without any problems. Just another question: Is the frame rate (FPS) impacts the update of the hundredths? Thanks you very much.

avatar image tomofnz Jun 20 '14 at 11:03 PM

I guess the update on the screen would be impacted by a slow fps.

The calculation itself I am not sure. You could obtain the Delta float from Tick and subtract that from .01 and feed the result into the Delay if the tick rate is not longer than .01s (obtained via comparefloat). If tick is longer than .01s just use no Delay as the nearest option ... but I am not sure it would be likely to happen. As I understand (though I may wrong) tick is usually milliseconds.

Note you can use a node called Get World Delta Seconds (if you wish). https://answers.unrealengine.com/questions/38798/how-to-use-delta-time.html

avatar image PierreMaux Jun 23 '14 at 05:12 PM

Thanks you very much you have been a great help for me. Have a nice day.

(comments are locked)
10|2000 characters needed characters left

Check out Devin Sherry's tutorial on how to add a timer to your game. http://youtu.be/5CAYeyqiUSM He has the clock being paused by pressing the space bar. You could set this to happen on player death and then reset when you respawn.

more ▼

answered Nov 25 '14 at 04:47 PM

avatar image

TorQueMoD
1.1k 81 110 142

(comments are locked)
10|2000 characters needed characters left
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