Hi, I have just entered the world of processing and I am really a beginner, I have only a little understood how to use processing sketches by trial and error.
I’m trying to run the sketch 84522 but I get the error: if (keyCode == KeyEvent.VK_1)
I copied all the .pde files in the same folder and I inserted a .jpeg image inside the sketch folder (inside data) giving it the name shown in the script (delorien)
but it doesn’t work … do you have any suggestions?
so sorry,but i can’t understand what i must do
(i’m using processing 2 because i need this version for polargraph)…
---- i must insert println( key , keyCode ); to echo? i don’t know what is echo!!
processing PDE / JAVA mode / println();
print to the console, so you can better follow / diagnose your code
i suggested to put that line into your void keyPressed() {}
and you could have just tried??
please run
thank you all, I solved … unfortunately I am so inexperienced in this matter that I had difficulty even understanding your answers, but thanks to Sandi (from polargraph forum) I managed to make the sketch work, I share with you his answer as well 'that someone else can solve the same problem:
"This is because the KeyEvent hasn’t been imported so Processing doesn’t know what it refers to. You could try adding:
to the beginning of your file. The next complaint will be one about not finding the file that’s referenced (called “delorien.jpg”) on the current first line of the file."