Building Healthy Meals - Tutorial, How did he do it?

Jan 15, 2016

I am learning variables and watched and practiced the exercises on the tutorials.  And now I am trying to trying to figure out on my own how to create the Building Healthy Meals example.  This is the example that Tom demos but I can't seem to find the instructions on how to build this type of interaction.  It is the demo where he drags food items to a plate and calories are added after he hits submit.  Then, when food items are returned to their "normal" state, the calories are subtracted from the total.  I have tried a few different times, and can't seem to get things working properly.  Thanks for any help.

Dana

11 Replies
Veronica Budnikas

Hi Dana,

I can't remember the interaction you are referring to, but I'll attach a one-slide SL file here that does something similar to what you need. Sorry, I have no time right this minute to elaborate too much, but have a look at the file and let me know if that helps or if you have any questions. It's not a drag and drop, it's a pick many, but you could certainly adapt it to be D&D.

Good luck!

Dana Kocalis

https://community.articulate.com/series/20/articles/introduction-to-variables

Here is the link to the video that I am trying to recreate. and it is at the 2.46 mark and the demo doesn't walk through the steps on how to build this type of interaction.  I have also included a screenshot of the example that I am trying to recreate.

The calories appear in the Calories box after he drags an item to the plate then clicks on Submit.  And calories are added with each item after he clicks on Submit.  Also, after he drags the item off the plate back to their original place and clicks on submit, then those calories are subtracted from the total.  So, I think it's basically a math problem but, I'm not sure. 

Thanks,

Dana

Veronica Budnikas

Hi Dana,

I did a screen recording which might help you build your interaction. I only just watched that bit that Tom did after doing mine; mine is a bit different in that I did not use a SUBMIT button (or a quiz question slide). I am not sure how you want to build it, but either way, you'll see how the variables and states are working and you should be able to recreate it with a SUBMIT button if that is what you need. Let me know if you have any questions.

Here is the link to the video: https://www.youtube.com/watch?v=0dO40rlMg0M&feature=youtu.be 

And attached is the .story file if it helps.

Hope this helps and good luck! 

 

Dana Kocalis

Veronica,

OMGosh, you are amazing.  Thank you so much for creating this video for me.  You definitely went above and beyond in helping a fellow community member.  Thank you.  I wish I could buy you a cup of coffee or pay you somehow for your time.  If there is anything I can do for you, just let me know. 

BTW, when I was trying to recreate it, I had the "apple set to 0" in the variable, and I also did not have a separate "total calories variable" so that was my first of many issues that I had.  :)

Thanks,

Dana

Dana Kocalis

I need to add that I tried rebuilding this course following along with your detailed instructions then on my own and it works perfectly.  I am totally understanding this (finally and hopefully) and was even able to troubleshoot and fix my errors.  I also found that if I leave item on the plate then hit refresh then drag back to the hotspot, the calorie total will show a subtracted amount only.  So, for the subtraction, I changed the variable to "assignment" vs. subtraction and it also works perfectly.  So not only did your video help me create the interaction, but through your detailed explainations in the video, it then also gave me the ability to think the process through and troubleshott my own issues.  Thanks again. 

Veronica Budnikas

Ah, that's great, well done!

I went back to my sample and had a look; when I hit refresh, if I had left items on the plate, they go back to the starting point though, so it does still work... perhaps your slide is still set to 'automatically decide' on revisit? It doesn't really matter, of course, what matters is that you found a way to solve it, so that is excellent!

This discussion is closed. You can start a new discussion or contact Articulate Support.