top of page

Creating a quiz using arrays in Construct

  • Writer: Jamie Harvey
    Jamie Harvey
  • Jan 25, 2019
  • 1 min read

ree

In today's task we looked at creating a quiz style game using arrays to store the answers and retrieve them. We manually wrote out events that add the selection of answers to the array at specific positions...


This is then read using events to set text on the layout to each set of 4 answers. Once you click on an answer, it sets your points to an instance variable number within the answer instance that you click. It also adds one to the questions global variable which will in turn set the answers to the next set of 4 in the array.


In conclusion this will be useful for our virtual crew project to have multiple choice questions which lead to different outcomes. I think I extended my knowledge with Construct and this will be useful for future projects.

Comments


bottom of page