Problem setting conditions of function.
Posted: Mon Feb 10, 2014 10:25 am
function:
- Code: Select all
int f_timer(int f_seconds)
{
int frame;
frame++;
if (frame >= f_seconds*30) { return 1; }
else { return 0; }
}
obj1:
- Code: Select all
int i = f_timer(5);
if (f_timer(5) == 0) ExitGame;
add: