Grade based on Layer order

Mar 10, 2021

Hi, I'm making a Pizza making game which is working so far except I need to give a grade that they use the correct sequence of toppings. 

Right now they click cheese it shows the cheese layer then all the other toppings layers get added as they pick them.

 

Is there any way to set a variable based on them displaying the topping layers in the right order?

2 Replies
Walt Hamilton

Adjust variable NextNumber add 1 when learner clicks Cheese or sauce, or anchovies, or onions.

Adjust variable Cheese set variable NextNumber when learner clicks cheese. Change state cheese Hidden when learner clicks cheese.

Adjust variable Sauce set variable NextNumber when learner clicks sauce. Change state sauce Hidden when learner clicks sauce.

etc.

You must hide the object, or they can click on it again, messing things up big time.

At the end each of the 4 variables will contain the number order that object was clicked, if you set the default value of NextNumber to 0.

If you put two cheeses on, you need two cheese objects to click.