I have a small problem and I'm not used to Processing at all yet, right now I'm just trying it out and I have encountered a problem which should be very easy to solve.
Here is the code I've written this far:
PImage a;
boolean showimage = true;
void setup() {
size(800, 600);
a = loadImage("57.png");
}
void draw(){
{
if(showimage) image(a, 0, 0);
if(mousePressed)showimage = false;
}
}
Some guy on another forum told me to have the boolean at the top of the code, but it didnt help. Should it be at the top instead of inside the draw?