I’m wondering how to println a sentence ONCE in Processing. when I type println("Hello World!"); it just shows lots of Hello World! sentences. I know how to fix it with keyPressed (when the key is pressed, type this, and stuff) but I don’t know how to do it in a simple way…
I’m wondering how to println a sentence ONCE in Processing. when I type println(Hello
Share
Set a flag so that it only gets printed once. For example, at global scope you should have:
And where you do the println: