Forum Discussion
Drag and Drop two drag items to go on the same drop target
Hi Margaret, I presume I have this correct:
- Item 1: Drop to A or B
- Item 2: Drop to A or B
- Item 3: Drop to C
- Item 4: Drop to D
Set up a multiple choice, just have True/False or whatever you like. Makes sense, however for the sake of covering it all, in Form View on the top right, make True to be the correct answer. Move this off to the side of the screen so the learner won't see it.
Now, back to the Slide view.
Create your 1/2/3/4 items and add a New State for each one, and also create your A/B/C/D drop spots. Now you are set up and ready to go!
Trigger time!
Action Change state of
On object Item 1
To state New state
When Object dropped on
Object Item 1
Dropped on tick Drop Spot A and Drop Spot B
Action Change state of
On object Item 2
To state New state
When Object dropped on
Object Item 2
Dropped on tick Drop Spot A and Drop Spot B
Action Change state of
On object Item 3
To state New state
When Object dropped on
Object Item 3
Dropped on tick Drop Spot C
Action Change state of
On object Item 4
To state New state
When Object dropped on
Object Item 4
Dropped on tick Drop Spot D
You have basically just set up what I proposed at the beginning, 1 and 2 can go on A or B, 3 must go on C, 4 must go on D :)
The finale ...
Action Change state of
On object True (or whatever you have to be the correct answer)
To state Selected
When User clicks
Object Submit button
On condition Shape of Item 1 is New State AND Shape of Item 2 is New State AND Shape of Item 3 is New State AND Shape of Item 4 is New State
Make sense?
The 4 actions above change each item to the new state if they are correct. Now we have just said that if 1 is correct AND 2 is correct AND 3 is correct AND 4 is correct, to change your multiple choice selection to True when clicking Submit ... and while we are clicking Submit ... BINGO ... it will show the Correct Layer.
What if it is wrong? You can show nothing OR if you want to show some incorrect feedback ...
Action Change state of
On object False (or whatever you have to be the correct answer)
To state Selected
When User clicks
Object Submit button
On condition Shape of Item 1 is not equal to New State OR Shape of Item 2 is not equal to New State OR Shape of Item 3 is not equal to New State OR Shape of Item 4 is not equal to New State
So if any of the Items are incorrect, they will be in the Normal state, therefore do not equal New State, and as you are clicking Submit it will select False in your multiple choice quiz and there will show the incorrect layer.
Don't look at it all and freak out OMG THERE IS SO MUCH AND IT IS SO CONFUSING, just do it bit by bit and you will be fine :)
Related Content
- 4 months ago
- 8 months ago