Time to text m:ss
1 post • Page 1 of 1
Time to text m:ss
Might be useful:
- Code: Select all
//Convert time into "m:ss"
scene.my.time2text := (t) => {
s := math.toInt(t%60);
math.toString(math.toInt(t/60)) + ":" + math.toString(s/10) + math.toString(s%10);
};
print("Algodoo running time: "+scene.my.time2text(system.time));
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests