25th June 2002 10:52 UTC
Loops
loop(c+1);
I know i can do it like this:
c=if(equal(b,1),c+1,c)
But i think that functions is a shorter way.
And i need frame var.
Like this
c=every(frame,20,do(c+1))
Archive: Loops
djcoolman
25th June 2002 10:52 UTC
Loops
loop(c+1);
c=if(equal(b,1),c+1,c)
c=every(frame,20,do(c+1))
Jaheckelsafar
26th June 2002 05:37 UTC
You coulb make a var to count the frames, the base something on the modulus (sp?) (% operator) of that.
Rovastar
30th June 2002 23:58 UTC
I am no expert on this but
c=if(equal(b,1),c+1,c)
can be inproved by writing it as
c=if(b,c+1,c)
Thus saving a equal condition for every repeation.
The % operator is a useful tool but remember that this operator is one of the greatest drains on performace so use it wisely.
Rovastar
8th July 2002 16:14 UTC
Or even better than:
c=if(b,c+1,c)
Would be just
c = c + b
(I think :) ) Thus getting rid of all those nasty "if"'s and "equal"'s.
Fork me on GitHub