I need an alternate sequence like 1, -1, 1, -1... asf. First I used if-statements for it, but it's dumb. Then I tried something like:
int n = 1;
...
do{
n = 0 + ( n * (-1));
} while(blabla)
It's ok, but I have to store n value from iteration to iteration. This isn't so pretty. How to compute that sequence from a control variable like frameCount?
Sorry, I am learning not only to code, but English too.