Calculate amounts over several slides

Hello, I have a question. I would like to calculate amounts over several slides. Screenshot attached. This currently works where the selections are added to the "Your score" text field with the choice variable, but I would like to add that amount to the second slide, and the selections on the second slide add to that amount, and so on. Then the final amount display on a "What your score means" slide. Is this possible?

Thanks!

7 Replies
Ashley Terwilliger

Hi Holly and welcome to Heroes! 

If the "Your Score" variable is being used on each slide, you can continue to add to it - and the previous amount added will remain. You're looking for the trigger to "adjust variable"  and then you'll see the options to add to it by a particular amount - and it can be based on when the user clicks a particular element or the state of an object is X. 

If I'm misunderstanding what you're looking to set up, could you share a few slides where you've got this started so that we can take a look? 

Michael Hinze

Hi Holly, I had a quick look at your file and noticed a bit of a 'logic glitch'. Once I select an option, e.g. "2" the choice variable is increased as expected and the other buttons in the row disappear. However, I can keep clicking the already selected button and keep increasing the choice variable. I don't think that's what you want.

One option to fix this is shown below, using one button as an example. I a.) edited the disabled state of the button, so it looks like the selected state and b.) added a trigger that changes the state of the button to disabled when clicked. This way, the button looks like it is selected and the variable only is increased once. Hope that makes sense.