[Solved] Show total time at end of level on "You Won" screen?

To JSONify is to convert it to a JSON formatted text. It’s an international standard format.

To do this in GDevelop and save it in storage, use :

image


To read it from storage and save it in a global variable, it’s a two step process (load into a scene variable string, then convert to global structure. Use :

image


Kind of. We’re both recommending you use storage to save the level times.

But I’m suggesting you use a structure to hold all the level times. For me, it’s a simpler way - you can modify the times in the structure easily, and save it when you’re done. If you want to display all the level times on the screen, it’s the easier way to do it.

@UlisesFreitas is suggesting writing each time to storage as individual entries. This needs to be done at the end of each level, and ensures that level’s time is saved at that point.

2 Likes