I understand that i can use modulus to loop through positive numbers e.g 0 to 10 would look something like this:
i++;
i %= 10;
But how can i make it so instead of starting back at 0 it starts at -10? Thanks.
I understand that i can use modulus to loop through positive numbers e.g 0 to 10 would look something like this:
i++;
i %= 10;
But how can i make it so instead of starting back at 0 it starts at -10? Thanks.
Don't use modulus.