Processing Forum
for (int i = 1; i < 10; i = i++) {
if (over+i) {
square+i = move. // this is just pseudo code
button+i+pressed = false// this is just pseudo code
//do something
}
}
Essentially you can just include 'i' in the variable names so that the loop determines what you run through. In flash simply adding the + tells it whats going on, I was wondering how to do the same thing in procesing?
Its a simple question but I just cant find what im looking for anywhere. Many thanks in advance.