Can you "lock" a variable?
Nov 04, 2019
I have created a quiz where the user selects their answer by dropping an object (frog) on one of 5 choices(plate). I used the free form quiz to do this. my variable "TotalScore" correctly add the points for each answer when the frog is dropped on a plate. My problem is if the learner changes her mind and drags the frog to another plate, the variable then adds the points for that second choice as well, skewing their score. Is there a way to lock the object once the user has dropped it on a target so they can't move it to a different choice (and add the extra points)? Of (better) is there a way to easily remove the points if the user changes their mind? Maybe I am going about this wrong and there is a more efficient way to build a custom quiz? Thanks!!
4 Replies
You could reset (Assign=0) the score variable every time an object is dropped and then recalculate.
Thanks, Michael. I think I understand what you mean but have not done this before, Will the variable still keep a score running over multiple questions if I reset it each time an object is dropped?
I assumed you have a score variable for each question and then one total score. My suggestion was to reset the question-specific variable before recalculating it.
No--just one variable that gets adjusted each question depending on how the learner answers. Maybe that's my problem.
This discussion is closed. You can start a new discussion or contact Articulate Support.