Animation with 3 different sketches combined using Switch with keyboard input

OMG, the various else if in void keyPressed()!!!
How is that possible that in my simple example above (Animation with 3 different sketches combined using Switch with keyboard input - #3 by Gus_Fermin, it worked without the else if and only with multiple if 's, yet here on the big program it did not work? stuff like that still gets me. Wow thank you very much, will keep studying the conditional statements and also thank you for your help and for pointing me to the other timed examples above.

1 Like