- Code: Select all
int seconds;
int minutes;
int hours;
int countframes;
void PlaytimeFunction()
{
countframes = countframes + 1;
if (countframes == 30)
{
countframes = 0;
seconds = seconds + 1;
}
if (seconds == 60)
{
minutes = minutes + 1;
seconds = 0;
}
if (minutes == 60)
{
minutes == 0;
hours = hours + 1;
}
}
Then, make an actor. Have that actor use the function PlaytimeFunction();. Make 3 text actors. For the first actor, have it's textNumber be seconds. For the second actor, minutes, and for the third actor, hours. Heres a demo showing you how to do this.