yeah, its a good one to keep in mind wink

another option was using Gamestudio's built in "cycle" function:
Code:
cycle(var x,var a,var b)

which wraps x to be between a and b, so in this case:
Code:
minutes += integer(seconds / 60);
seconds = wrap(seconds, 0, 60);


Last edited by JMichalc; 03/24/09 02:20.