Archive: counter


26th January 2005 14:17 UTC

counter
Hello :)!
I want to make these kind of counter
0 1 2 3 4 3 2 1 0 1 2 3 4 3 2 1.....
i'm sure you can help me!
thanks
stephan


26th January 2005 14:39 UTC

init:
counter=0;
dir=-1;
frame:
dir=if(bor(equal(counter,4),equal(counter,0)),-dir,dir);
counter=counter+dir;

You should really post this in 'troubleshooting', this sub-forum is for requesting changes to AVS.


31st January 2005 07:05 UTC

thank you very much... it works great!
sry for posting in the wrong sub-forum!