Displaying time
display text
minutes
mod(floor(( game.Time )/60),60)
hours
floor(( game.Time )/3600)
problem is time is displayed
1:0
intead of
01:00
how do i display the zero on the left without having to use an additional display behaviour?
display text
minutes
mod(floor(( game.Time )/60),60)
hours
floor(( game.Time )/3600)
problem is time is displayed
1:0
intead of
01:00
how do i display the zero on the left without having to use an additional display behaviour?
Comments
padInt(x,2)
padInt(5,2) = 05
@abuabed84
use padInt(value, number of characters)
so padint(value,2) will return your above example as 01
Do the same for the minutes.
MESSAGING, X-PLATFORM LEADERBOARDS, OFFLINE-TIMER, ANALYTICS and BACK-END CONTROL for your GameSalad projects
www.APPFORMATIVE.com