Discuss Scratch

-_-Cardinal-_-
Scratcher
4 posts

How to make Personality Quizes?

Hi! Cardinal here…

How do I make quizzes on Scratch? Personality ones to be more specific. I have become a quiz-o-holic lately XD

The_Imaginarium
Scratcher
1000+ posts

How to make Personality Quizes?

This is not enough information to go on, if you have a specific question that would be easier to understand.
Yusei-Fudo
Scratcher
1000+ posts

How to make Personality Quizes?

What kind of personalities???
EpicGhoul993
Scratcher
1000+ posts

How to make Personality Quizes?

Do you need help with codes or questions?
-_-Cardinal-_-
Scratcher
4 posts

How to make Personality Quizes?

Questions like:

Choose your reactions to a situation given:

Choose your favorite color:

Who are you hoping to get:

What is your super power:

Ect…
UltraGamer_Studios
Scratcher
96 posts

How to make Personality Quizes?

Create 4 sprites. Put them in different parts of the screen. Give them a bunch of costumes with possible answers. The first costume will be an answer for the first question, the second the second, etc. Create a bunch of backdrops for each question. Backdrop 1 will be the first question, backdrop 2 the second, etc.

Next, create a variable called “question” (name doesn't matter much). Make sure this isn't visible.

In the backdrop, add these scripts:
when green flag clicked
set [question v] to [1]
broadcast [message1 v]

when I receive [message1 v]
switch backdrop to (question)

In each of the sprites, add these scripts:
when this sprite clicked
change [question v] by (1)
broadcast [message1 v]

when I receive [message1 v]
switch costume to [question]

You can put those scripts into 1 sprite, then copy them into the others by dragging them over the other sprite icons.

If you want results to appear at the end, you'll need to use some more variables that detect how much a certain type of answer is picked, and then set their result to whatever type of answer is picked the most often (which of the variables is the highest). Then, in the backdrop sprite, figure out when all of the questions have been answered using an if block that checks when question is greater than the number of questions. Once all of the questions have been answered, send a broadcast that hides all of the other sprites. Then, switch the backdrop to one that tells them their result (you'll need 1 backdrop per result).
-_-Cardinal-_-
Scratcher
4 posts

How to make Personality Quizes?

UltraGamer_Studios wrote:

Create 4 sprites. Put them in different parts of the screen. Give them a bunch of costumes with possible answers. The first costume will be an answer for the first question, the second the second, etc. Create a bunch of backdrops for each question. Backdrop 1 will be the first question, backdrop 2 the second, etc.

Next, create a variable called “question” (name doesn't matter much). Make sure this isn't visible.

In the backdrop, add these scripts:
when green flag clicked
set [question v] to [1]
broadcast [message1 v]

when I receive [message1 v]
switch backdrop to (question)

In each of the sprites, add these scripts:
when this sprite clicked
change [question v] by (1)
broadcast [message1 v]

when I receive [message1 v]
switch costume to [question]

You can put those scripts into 1 sprite, then copy them into the others by dragging them over the other sprite icons.

If you want results to appear at the end, you'll need to use some more variables that detect how much a certain type of answer is picked, and then set their result to whatever type of answer is picked the most often (which of the variables is the highest). Then, in the backdrop sprite, figure out when all of the questions have been answered using an if block that checks when question is greater than the number of questions. Once all of the questions have been answered, send a broadcast that hides all of the other sprites. Then, switch the backdrop to one that tells them their result (you'll need 1 backdrop per result).

Thanks!

Powered by DjangoBB