Copy link to clipboard
Copied
Hi ive made a small quiz, and in it on a button, i added a code :
go1._visible = true;
go1.onRelease = function(){
correct_display = Number(correct_display) + 1;
}
and on a text input i added the code :
correct_display._visible = true;
correct_display = "0";
stop();
i want the correct_display to be the answer of the result if correct to be 1 and to be added up to the correct_display.
ive got buttons that when release are to have the code : as go1, but would be go2,go3,go4,go5
go1._visible = true;
go1.onRelease = function(){
correct_display = Number(correct_display) + 1;
}
if (Number(correct) == 5) {
comment = "5 RIGHT!! You obviously cheated.";
} else if ((Number(correct) <= 4) and (Number(correct) >= 3)) {
comment = "So, how does it feel to be average?!?";
} else if ((Number(correct) <= 2) and (Number(correct) >= 1)) {
comment = "Did you even try to get them right?";
} else if (Number(correct) == 0) {
comment = "One word. LOSER!!!";
}
and no comments are displaying either.
Have something to add?