Hi, I was wondering how to use the getTime(); fucntion.
I want to make a game that "does stuff while your away" so like if you close the game then in if you open it again and 2 hours have passed then somthing happens.
Thanks if you can help!
stTime t = getTime(hour);
stTime s = getTime(hour);
if(s >= t + 2)//if current time "s" is more or equals your last time "t"
{/do stuff;}
Users browsing this forum: No registered users and 1 guest