I've attached a basic example here that hopefully helps you;
I couldn't manage to make it work with the built in check boxes so I built customized ones;
I set up a variable true/false for each box which toggle when user clicks and change the state of the box to check/normal and add or subtract to a "total" numeric variable depending on the state of the box;
if you copy/paste the boxes the triggers of the boxes will be copied but you will need to create new variable and adjust the triggers for the new variables
On slide 1, I used built-in checkboxes (no need for variables, and fewer triggers), and a technique that allows for even fewer triggers. When a box is checked, it shows a slide layer, which calculates how many boxes are checked, and hides itself. Since there is nothing on it, you don't see it, but every time it shows, it calculates. Starting the total at 0, and then counting the selected boxes uses half as many triggers as adding and subtracting with every click. There are a lot fewer triggers, and they are hidden. You could create four triggers for one checkbox, copy them, and paste them to each checkbox, but then you have a lot of triggers in your main trigger pane.
On slide 2, I fixed the original slide. Rectangle was changing the variable test, but the triggers were referencing variable check_4. I changed them to reference check_4. The triggers for check_ 4 were both set to fire if check_4 = false. I changed the second one to true, so that method works correctly, too.
8 Replies
Hi Claire;
I've attached a basic example here that hopefully helps you;
I couldn't manage to make it work with the built in check boxes so I built customized ones;
I set up a variable true/false for each box which toggle when user clicks and change the state of the box to check/normal and add or subtract to a "total" numeric variable depending on the state of the box;
Thank you Stefano! This is a great starting point for me. I'm fairly certain I can work with this. If I struggle - i'll be back!! haha
If I want to add more boxes - is it possible to copy and paste the checkboxes? Will the triggers copy and paste too?
(Sorry. I'm a novice!)
It allows me to copy the boxes but the triggers don't seem to carry through.
if you copy/paste the boxes the triggers of the boxes will be copied but you will need to create new variable and adjust the triggers for the new variables
HI Stefano,
I think I have done this as you suggested, but my tick boxes still aren't working.
Can you kindly take a look and suggest how I can get this to work?
Check out the attached version.
On slide 1, I used built-in checkboxes (no need for variables, and fewer triggers), and a technique that allows for even fewer triggers. When a box is checked, it shows a slide layer, which calculates how many boxes are checked, and hides itself. Since there is nothing on it, you don't see it, but every time it shows, it calculates. Starting the total at 0, and then counting the selected boxes uses half as many triggers as adding and subtracting with every click. There are a lot fewer triggers, and they are hidden. You could create four triggers for one checkbox, copy them, and paste them to each checkbox, but then you have a lot of triggers in your main trigger pane.
On slide 2, I fixed the original slide. Rectangle was changing the variable test, but the triggers were referencing variable check_4. I changed them to reference check_4. The triggers for check_ 4 were both set to fire if check_4 = false. I changed the second one to true, so that method works correctly, too.
This discussion is closed. You can start a new discussion or contact Articulate Support.