Skip to content
Forum Archive

counter

3 posts

stephan019#

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
PAK-9#
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.