Hi,
I try to make a time counter for my game : at the beginning of the game, it starts from 0, and when the game is finish, it stops.
I found some information in this tutorial : https://www.construct.net/en/tutorials/introduction-time-timer-421
My solution :
On start of layer, set a global variable "gGameTime" to 0
Every 1 second, and while the game isn't finish, add 1 to the variable "gGameTime", and display the time in a text box
It works, but I don't know if it's optimal or if there's a better way to do it.
Thanks for answers