Drag and drop development advice needed - pyramid game
Hey guys. I'm working on a Storyline project game in which I'm trying to implement drag and drop.
The learner needs to figure out where in the pyramid hierarchy each text element fits and drag them there within a given amount of time. I'm attaching a simplified version that is analogous to the idea of the game (the game itself is not about food).
I've got my initial functionality of dragging items to a box and having them stay there (although it's a bit clunky).
Mainly though, I'm trying to figure out how to deal with this:
Beyond the top of the pyramid (the main category item, e.g. 'food' in this example), the user can arrange the 2nd tier subcategories in six (I think?) different correct ways.
And on the lowest tier items, they have umpteen correct arrangements, depending on where they dragged their 2nd tier categories (meat, fruit, vegetables).
When the user has set their board, they will click "submit". I want to be able to score them something like "You got these correct" and have the text boxes that are correct (which can come in a variety of arrangements) stay in their spots on the pyramid, and have the ones that are wrong fly off the pyramid and back to the lower third, for them to "try again."
I want to be able to assess a range of various correct layouts. Is there a straightforward solution that doesn't involve a deep nest of variables and triggers that I'm not seeing?
I thought about hotspots or hidden objects, and doing something with counters or labeling/grouping items, but I keep going in circles on the cleanest logic.
I'm not super adept with deep development math, so you may have to baby-step me through this a bit..
If anyone has any ideas, I'm all ears!