Page 1 of 1

Stopping at 0

PostPosted: Sat Sep 27, 2008 4:44 pm
by BlarghNRawr
how can i make a score stop at zero, not go into negatives?
i have done this alot before, but i cant remember how :oops:

Re: Stopping at 0

PostPosted: Sat Sep 27, 2008 4:46 pm
by Thanx
Code:
if(score < 0)
{
score = 0;
}

:lol:

Re: Stopping at 0

PostPosted: Sat Sep 27, 2008 5:04 pm
by BlarghNRawr
thanx, thanx
i knew it was easy! :lol: