So this question is not specific to Open Frameworks but the community here is awesome so I will ask it here.
I am trying to create a simple checkers game. I have some code that checks if the piece has been moved over top another piece and if it indeed was then I want to remove the piece it was moved over top of.
My approach to do this was to remove the instance in the draw section where it is creating that specific checker.
The draw loop is this:
for(i = 0 ; i < 12 ; i++){
ofSetColor(200);
ofCircle(blackLocX[i], blackLocY[i], pieceR);
}
So is there a way to keep running the whole for loop but skip say i = 7? or i = 9?
I would of course then need to skip multiple numbers but one thing at a time!