Counting objects dragged into another object question. Possible?

Aug 30, 2013

Am new to Storyline. I was curious if it would be possible to create a quiz question which would grade the number of objects dragged into another object. For example, dragging 5 balls into a box to get a correct answer. Any more or less than that would give an incorrect answer. Thanks.

8 Replies
Jim Yang


Rebecca Fleisch Cordeiro
said:

Hi Jim,

Welcome to the community.

I created a screencast here that I think does and explains what you're looking for. There's also a link to a sample story.

Please shout out with any questions.

I followed the tutorial step-by-step but it doesn't seem to be working. File is attached. Is there something I'm doing wrong?

Also, the second slide shows something similar to what I want to achieve but would count (add 1) based on when an object is selected. Both slides are not doing what I want them to do. Any help would be greatly appreciated.

Jim

Rebecca Fleisch Cordeiro

Hi Jim,

I've made a number of changes to your file, and left a few for you to do.

Answer box

I added a Drag Over state to it.

Off target rectangle

I inserted a rectangle I called off target. It's transparency is set to 100%. I left a thin border line so you can see it. This is placed at the bottom of the timeline.

The purpose of this rectangle is to allow Learners to drag objects off the answer box if they change their minds.

True/False Variables

I add 6 T/F variables, one for each "Elm" object. The default for all is False. I matched the names to your "Elm" drag objects, so: Elm1, Elm2, Elm3, Elm11, Elm22, Elm33 (variable names can't include periods).

Triggers for each "Elm" Item

You can delete your trigger that says to change the state of the objects to drag over.

Each Elm item needs the following 4 triggers. I'm using Elm1 as the example here. They need to be in this order in the trigger pane.

  • Add 1 to the Q3counterelm variable (this was a variable you had inserted) when Elm1 is dropped on Answerbox IF the Elm1variable=F
  • Adjust the variable Elm1 to have a value of True when Elm1 is dropped on the Answerbox
  • Subtract 1 from the Q3counterelm variable when Elm1 is dropped on Offtarget if Elm1 variable=T
  • Adjust the variable Elm1 to have a value of False when Elm1 is dropped on offtarget

Submit interaction trigger

I moved the submit interaction trigger so it's at the bottom in the trigger pane.

Triggers you need to add

I've done the triggers for Elm1 and Elm2. You need to do the triggers for Elm3, Elm11, Elm12, and Elm13

Let us know how you make out.

Rebecca Fleisch Cordeiro

Hi Jim,

Without the T/F variables, every time the Learner drags an item, the count variable keeps counting up (or down). I'd suggest testing it yourself to get a better feel for it:

Remove one of the T/F conditions on one of the object, drag an item onto or off of the answerbox, and then drag it again and again. Watch what happens with the count variable.

Glad this worked for you, and please continue shouting out with questions. Someone in the community will step in and reply.

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