Learn Create Your Own Split Screen

Next Page

Have you ever done anything like this in Scratch? Look at it closely and make sure you understand what it does.

The program uses two List Variables, one called Questions and the other Answers. Importantly, there's the same number of items in each list.

When the sprite is clicked, it chooses a random number, asks a question, and checks to see if your answer matches the corresponding answer. For example, if the random number was 6, it would ask question number 6 and check that whatever you typed matches answer number 6.

A complete program would ask the questions in a loop, and keep track of your score. For the moment, we're just interested in the list variables.