[SOLVED] PImage[] array inside class shows all images at once

Hey There!

The showit variable is not part of the PImage ! It is a standalone as a global but it isn’t part of the PImage. change the code to

void keyPressed() {
  if (key == 'A') {
    showit = true;
  }
}
1 Like