Learn creative coding writing simple programs

13. Event happening only sometimes

We use the print() function for the first time. Using print we can find out the value of a variable and display messages below our program.
When something is not going as expected it can be useful to add some print() calls to our program. We can print the value of a variable, or just print a text to find out if that part of the program is running or not.
print() is your friend :)

Tags: Learn

Code editor

You can make changes to the code below. Then
Below you can ask and answer questions related to this video. If your question is unrelated to the video, please post it at the Processing Forum as I'm unable to help with all of your programs and still have enough free time to eat and sleep :)
comments powered by Disqus