Changes

Jump to: navigation, search

QFunction

670 bytes added, 09:16, 2 February 2018
no edit summary
ellipse(cX - 130, cY+20, 15, 15);
}
}
 
</pre>
 
<br>
 
 
== qButton Funktion ==
 
<pre>
 
// Question-Number, Minimum-Selection
function qButton(qN, qType){
if( (mouseIsPressed)&&(mouseUp == 0) ){
mouseUp = 1;
if ((mouseY >= height - 150) && (frame > 0) && (frame <= 3)) {
var count = 0;
for(var f=0; f<=cList.length; f++){
if(cList[qN-1][f] != undefined){
count = count + 1;
}
}
if(count > qType - 1){
frame = frame + 1;
frameSetup = 0;
}
}
}
 
fill(200);
rect(10, height - 150, width-20, 150-10, 20);
 
textAlign(CENTER);
textSize(40);
fill(200);
noStroke();
fill(0);
text("NEXT", width / 2, height - 75);
 
}

Navigation menu