Limiting the number of drops on hotspot

May 30, 2021

Hi everyone, I am making an interaction for children. There are going to be 10 cookie jars each labeled with a number from 1-10 and the number specifies how many cookies can be placed in the jar. I have placed a trigger to drop each cookie in any of the jars but I don't know how to limit the number of cookies in one single jar, they all can be placed in one single jar as of now. Is there a way to restrict the number of objects dropped on hotspot???

5 Replies
Dynacor Learning

Hi Walt or anyone,

I'm working on a project with similar behavior.  Once the drop box is full with 8 drag items, trying your method somehow it's not working for me. Unfortunately the user can keep on dragging items nonstop, overflowing the dropbox.  I've attached a sample.  Please help.

thanks, Rob

Walt Hamilton

Not sure why this is acting this way. I created a new project, and it acted the same way, so it is probably a new feature introduced in one of the latest upgrades. I would submit a support case, if it were mine.

While you are waiting on that, see the attached sample for a way you might make it work. I changed the drop target to a shape instead of a hotspot, because I needed to change its state, and hotspots don't have states. (just one of the many ways hotspots aren't as flexible as shapes.) I gave the shape named Drop Zone Border a fill, and used it as a target.  Then after eight objects are dropped on it, I changed it to Hidden state, instead of covering it. That didn't work until I edited it, created a new state by copying Normal, and named it Hidden. Then I added a text box to the Hidden state. When that worked, I moved the text box off the slide, and deleted the shape designed to cover the target. You can't drop more objects on it, but if you drop one exactly on a shape there, it will replace it. This even though the target is gone!!! 

You can also make it work by giving the target a line motion path, and moving it off the slide after eight objects are dropped.

In my opinion, definitely a bug.