Forum Discussion
LisaMolina
3 years agoCommunity Member
Subtract from variable with drag and drop
Hi all, looking for some guidance here.
I'm creating an interaction where learners create a line plot by dragging and dropping Xs. I want to add one to a variable when the X dropped in one area, ...
WaltHamilton
3 years agoSuper Hero
Probably the largest problem is that you will need a unique variable for each stop. You can't get it to work trying to reuse "X".
That said, here is a sample of a way that is perhaps easier. I only created triggers for
Stop1 and Stop2. If you want, you can change the dropped location of the X by editing the dropped state of the Stops. I took out the add and subtract triggers. I think (I'm guessing here) that you had those to keep track of which items had a drop on them. Using states may be easier, but if you need those numbers for some sort of additional calculations, they should be pretty easy to add back in.
Any questions, ask.
Related Content
- 12 months ago
- 12 months ago
- 12 months ago
- 12 months ago
- 12 months ago