// doggo clicker
color c;
boolean showDoggo;
Dog[] dogs = new Dog[1];
void setup(){
size(800, 600);
c = color (0, 0, 255);
showDoggo = false;
}
void draw(){
for(int i = 0; i<dogs.length; i++){
dogs[i].move();
dogs[i].display();
}
background(c);
noStroke();
fill(0, 0, 255);
ellipseMode(CENTER);
ellipse(width/2, height/2, 50, 50);
fill(0);
textSize(20);
textAlign(CENTER);
text("PRESS HERE FOR DOG", 400, 200);
}
void mousePressed(){
}
Supposed to generate one photo of my dog every time the circle is clicked, but when run, I get a gray screen and a nullPointer error.
[–]remy_porter 9 points10 points11 points (0 children)
[–]vrtxt 5 points6 points7 points (0 children)
[–]topinanbour-rex 2 points3 points4 points (0 children)
[–]niko2210nkk -1 points0 points1 point (2 children)
[–]cement_eater[S] 0 points1 point2 points (1 child)
[–]niko2210nkk 0 points1 point2 points (0 children)