Better way to create and save total game time?

Hi,

I currently have a total game time that is handled by a function running on a timer. The system works as intended but as you can see by the graphs it’s starting to get messy. I tried saving it as a string but had trouble adding the local string on the player and the string on the save data together, it would save it but restart from 0 on begin play. Is there a far better way of doing this process or is this a standard way of doing it?

Save data

Load data

Format of widget

1 Like

There’s a runtime variable, ‘game time in seconds’.

You could just use that, and save that. And only convert to a readable format in the display widget?

i did try using that before but kinda got stuck saving it, but do you think that would be cheaper performance wise?

1 Like

Performance wise, none of these options ( including the one you have ), is a problem.

It would just be a bit neater, that’s all :slight_smile: ( not much mind you… )

To tidy things up, you might want to look at the ‘set members in’ node, which you can use to only update bits of structures

image

1 Like