Keeping track of playtime

Hey Danielsh09-

The “Now” node will return a date/time structure that can be used to get the current time and date of the computer. This can be promoted to two variables (start time and elapsed time). Start time should be set at the beginning of play and elapsed time can be set as needed (at a checkpoint, save point, end of level, etc.). Adding a get node of these variables, you can then drag off and use a “Get Time of Day” node which returns the time elapsed since midnight and returns a timespan. A “Timespan - Timespan” node can then be used to get the total number of seconds between the two.

1 Like