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?
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?
Yes let me share a few slides. The amounts calculate correctly for the selections on each slide, but I am not understanding how to add to to the amount on all slides after the first, that carry over from the previous slide.
At the moment your four buttons in the first row of each page are setting the value of your choice variables, instead of adding. Make sure you all buttons on all slides are using trigger " Add *nn to Choice when user clicks".
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.
Can you tell us a bit more about where you're testing this? You'll want to use the HTML5 output in Mobile Safari on your iPad or the Articulate Mobile player as detailed here. We currently don't offer support for Android devices.
7 Replies
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?
Yes let me share a few slides. The amounts calculate correctly for the selections on each slide, but I am not understanding how to add to to the amount on all slides after the first, that carry over from the previous slide.
Hi Holly,
At the moment your four buttons in the first row of each page are setting the value of your choice variables, instead of adding. Make sure you all buttons on all slides are using trigger " Add *nn to Choice when user clicks".
*replace nn with desired number.
Good luck.
Hassan
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.
Okay I will try both of these. Thanks guys.
Score calculation is not working on mobile devices. Any secret to making this work?
Hi Holly,
Can you tell us a bit more about where you're testing this? You'll want to use the HTML5 output in Mobile Safari on your iPad or the Articulate Mobile player as detailed here. We currently don't offer support for Android devices.
This discussion is closed. You can start a new discussion or contact Articulate Support.