Choosing multiple objects to branch to a new slide

Oct 25, 2023

I'm building out a training where the user will essentially build what they want with the options they want and then that will branch to a new slide. But I'm kind of lost on how to start this. Any ideas are welcome.

Example: A user wants a cheeseburger with mustard, cheese, and tomato. On the screen the click the mustard, cheese, and tomato, and then that takes them to a new slide that shows them that configuration.

Another user wants no bun, burger, ketchup, tomato, and cheese. They click those objects and then that branches to a new slide with that configuration. 

Any idea on how to build this out or triggers/variables? 

4 Replies
Brian Dennis

The triggers might get a bit long, but you could create a set of 'boolean (true/false)' system variables, then have triggers linked to the bun, mustard, etc that sets the corresponding variable to True. I would recommend setting the default values to false.

Next, create a trigger that jumps to the appropriate slide, based on the combination of variable values. Triggers can have multiple conditionals (use the + button); caution, the trigger conditions might get long with more and more variables to check...

Absolutely workable, if a bit tough to wrangle at first. Best of luck

Martin Sinclair

I think this would be possible to do with a list of triggers as Brian has suggested, but as he says it could get complicated quickly!

I'd maybe have a go at building an array using some Javascript, especially if the order of ingredients is important in the long run!

This would allow you to build an image of all possible combinations on screen 2, and house them as states in a single image

 

On the first page, the variables are your ingredients and the javascript trigger sorts them into alphabetical order, before jumping to the next slide. This means that whatever order someone selects the ingredients, they will always be sorted to match one of the states on the second slide

Can I recommend this fantastic resource by Zsolt Olah as a starter?

It explains arrays and their purpose much better than I can!

Martin Sinclair

Had a quick bash at the True / False method. 

On the first slide is a button for each ingredient, with a T/F variable toggling whenever you click on it.

On the second slide, the state of the rudimentary burger image changes when the slide starts based on which ingredient variables are currently set to true.

I have included a key of the variables in the top right so you can keep a track of them as you click on ingredients.

 

Demo here and story file attached

Walt Hamilton

Check the attached version of Martin's demo. It provides a method that is simpler, and can be expanded to any number of objects without an increasingly heavier trigger and conditions load.

Just be sure to set the Show layer triggers in the right order.

If you need to jump to a different slide, you can easily put the layers on that slide, and set them to show when the timeline starts.