Ok this is the problem i've been having, it's on modular arithmatic so called "clock math" it's real simple to do in c,c++,or visual basic, but i've been trying to find a function or operator so i can do it in dark basic for a 2D game i'm working on. This is what it does: Think of a clock, u start at 1 and as time goes on the time goes like 1,2,3,4 etc... anyways you get to 12, but after that it is'nt 13 it's 1 again. anyways in c++ you would write that statment as x % 12 (x being the number of hours so far) in visual basic you would write it as x mod 12, they both give the same effect. So for an example what would happen if we had x % 2 the number line would go like 0,1,2,0,1,2 etc... everytime it reaches 3 returning to 0. Anywas that's what it does, if anyone knows about a fuction or operator that performs this operation please tell me. [b])
Sparing - Loved by many Pefected by few.