Quiz Idea

My quiz is based off a popular hip game called Among US. The layout for my quiz starts of with the welcome screen whic then transtions into 5 questions and finishes off with one result screen for the quiz.

Questions to my quiz

"*" means it's the correct answer

Q1: Maximum # of players that can play in among us?

A: 10* B: 8 C:6

Q2: How many maximum # of imposters are there in among us?

A: 2 B: 3* C: 1

Q3: where is amoung is game set in?

A: In the jungle B: In the House C: In the spaceship*

Q4: How many maps are there?

A:5 B:3* C:1

Q5: What happens when are killed?

A: you lose B: you are kicked out C: you become a ghost

Javascript Code:

var score = 0;
onEvent("button3", "click", function( ) {
  setScreen("screen2");
});
onEvent("button1", "click", function( ) {
  if (getProperty("radio_button1", "checked")) {
    score = score + 1;
    showElement("button2");
  }
  if (getProperty("radio_button2", "checked")) {
    score = score;
    showElement("button2");
  }
  if (getProperty("radio_button3", "checked")) {
    score = score;
    showElement("button2");
  }
});
onEvent("button2", "click", function( ) {
  setScreen("screen3");
});
onEvent("button4", "click", function( ) {
  if (getProperty("radio_button4", "checked")) {
    score = score;
    showElement("button5");
  }
  if (getProperty("radio_button5", "checked")) {
    score = score + 1;
    showElement("button5");
  }
  if (getProperty("radio_button6", "checked")) {
    score = score;
    showElement("button5");
  }
});
onEvent("button5", "click", function( ) {
  setScreen("screen4");
});
onEvent("button6", "click", function( ) {
  if (getProperty("radio_button7", "checked")) {
    score = score;
    showElement("button7");
  }
  if (getProperty("radio_button8", "checked")) {
    score = score;
    showElement("button7");
  }
  if (getProperty("radio_button9", "checked")) {
    showElement("button7");
    score = score + 1;
  }
});
onEvent("button5", "click", function( ) {
  setScreen("screen1");
});
onEvent("button8", "click", function( ) {
  if (getProperty("radio_button10", "checked")) {
    showElement("button9");
    score = score;
  }
  if (getProperty("radio_button11", "checked")) {
    showElement("button9");
    score = score + 1;
  }
  if (getProperty("radio_button12", "checked")) {
    showElement("button9");
    score = score;
  }
});
onEvent("button7", "click", function( ) {
  setScreen("screen4");
});
onEvent("button9", "click", function( ) {
  setScreen("screen6");
});
onEvent("button10", "click", function( ) {
  if (getProperty("radio_button13", "checked")) {
    showElement("button11");
    score = score;
  }
  if (getProperty("radio_button14", "checked")) {
    showElement("button11");
    score = score;
  }
  if (getProperty("radio_button15", "checked")) {
    showElement("button11");
    score = score + 1;
  }
});
onEvent("button11", "click", function( ) {
  setScreen("result");
  setText("text_input2", "" + (score + "/5 correctly"));
  if (score == 5) {
    showElement("label24");
  } else {
    if (score >= 3 && score < 5) {
      showElement("label23");
    } else {
      if (score < 3) {
        showElement("label22");
      }
    }
  }
});

Challenges I faced

I have done block coding in the past with websites like scratch so I knew generally how it worked. But still I faced a challenge. This was being getting the result screen to work properly since I wanted different types of text to show depending on your score. First what would happen was your score would show but all the different text would pop up. So I fixed this with the if/else block and it that fixed my orginal problem of the all the text popping out at once. But this led to the score always showing up as 100% even if you got everything wrong so I added the setText block with the if/else block.

What can I do to improve my quiz

Some things I would like to add is to randomize the order of my questions so its not always the same order. I also want to add sound effects to my quiz to improve the user experience. Finally something that I want to improve on for my quiz is to make the code much more efficent.