everything seems to work, thanks for the help bro’s!
since this goes way out of league for teachers at my school. maybe ya’ll can judge this piece of code?
int q=0;
PFont font;
PImage img;
void setup() {
size (1400, 800);
font = loadFont ("Futura.vlw");
textFont(font);
rect(800, 0, 600, 800);
}
void draw() {
fill(255);
rect(0, 0, 800, 400); // question panel
rect(0, height/2, 400, 400);//left box
rect(400, height/2, 400, 400);//right box
rect(800, 800, 1600, 1600); //Drawscape
fill(0);
textSize(32);
//QUESTION 1
if (q==0) text("Ik zie mijzelf als sociaal", 200, 200);
if (q==0) text("ja", 200, 600);
if (q==0) text("nee", 600, 600);
if (q==0) fill(255);
//QUESTION 2
if (q==1) text("Ik wil graag op vakantie", 200, 200);
if (q==1) text("ja", 200, 600);
if (q==1) text("nee", 600, 600);
if (q==2) text("Ik ben gelukkig zoals ik ben", 200, 200);
if (q==2) text("ja", 200, 600);
if (q==2) text("nee", 600, 600);
//QUESTION 4
if (q==3) text("Ik hou van avontuur", 200, 200);
if (q==3) text("ja", 200, 600);
if (q==3) text("nee", 600, 600);
//QUESTION 5
if (q==4) text("ik ben vaak niet mijzelf", 200, 200);
if (q==4) text("ja", 200, 600);
if (q==4) text("nee", 600, 600);
if (q==5) text("ik wil eventjes lekker dansen", 200, 200);
if (q==5) text("ja", 200, 600);
if (q==5) text("nee", 600, 600);
}
void mousePressed() {
if ( mouseButton == LEFT ) q++;
if (q > 5) rect (0, 0, 800, 800);
if (q == 6) get(800,0, 600, 800).save("img." + frameCount + ".png");
if (q == 7) exit();
//LINES QUESTION 1
if (q == 1 && mouseX > 0 && mouseX < (0 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 1100, 100);
if (q == 1 && mouseX > 400 && mouseX < (400 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 900, 0);
//LINES QUESTION 2
if (q == 2 && mouseX > 0 && mouseX < (0 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 1200, 200);
if (q == 2 && mouseX > 400 && mouseX < (400 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 800, -100);
//lines QUESTION 3
if (q == 3 && mouseX > 0 && mouseX < (0 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 1300, 400);
if (q == 3 && mouseX > 400 && mouseX < (400 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 1100, 100);
//lines QUESTION 4
if (q == 4 && mouseX > 0 && mouseX < (0 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 1400, 800);
if (q == 4 && mouseX > 400 && mouseX < (400 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 1100, 100);
//lines QUESTION 5
if (q == 5 && mouseX > 0 && mouseX < (0 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 1500, 1600);
if (q == 5 && mouseX > 400 && mouseX < (400 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 1600, 500);
//lines QUESTION 6
if (q == 6 && mouseX > 0 && mouseX < (0 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 1600, 3600);
if (q == 6 && mouseX > 400 && mouseX < (400 + 400) && mouseY > 400 && mouseY < (400 + 400))
line (1100, 400, 1100, 100);
}
only if you want ofcourse! thanks for the help so far!