Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
How do i convert a string like 4:00 into time like 240 secs and back.
I'm trying to set a par time for the a course and delete the total time spent completing the course and then displaying the difference.
Develop games in your browser. Powerful, performant & highly capable.
depends on whether you have always the same format or if your system has to work with different formats
if its always mm:ss, you could for example just calculate
int(tokenat("4:00", 0, ":"))*60+int(tokenat("4:00", 1, ":"))
Sry for the late responce I figured it out another way and for got about the post.
thx again though.