Hello everyone! I have a problem to do the following:
I made a global variable that adds 1 for each second, now the problem is how to make for each jump of 10 , do "action A"? like if the variable is 10 do "action A" and if 20 do action "A again", and 30 and so on.. how do i make it? I need this for a game i'm making to make the Tamagotchi animal feel hungry again every jump of the number I choose depends on this global variable..
<img src="http://img5.imageshack.us/img5/6308/j7pg.png" border="0" />