Drag and drop with variable count

Aug 09, 2017

HI

 

I am using SL2 and creating a window display event, the idea is that a student drags and drops items into a display that make it attractive to a potential customer, there are various items ie Washing machines, hoovers and irons etc. However the issue I have is that that each item has a price and they must not go over a certain amount. I know I can apply variables to the items but can this be achieved within a drag and drop scenario. So the items goes into a display shelf ( for example) and the price of the item is added to a running total that is displayed. The total can go over the limit as instruction can be given to the student that their limit is i.e £1500

7 Replies
Len Hack

Hi Marc,

Great question, I love a bit of a challenge.

It looks like there are two options. 1. 'adjust variable' when 'object dropped on'. 2. 'adjust variable' when 'state'

Have a look at the attached, I used option 1 to add and option 2 to subtract.

(I also started working on message to say when they went over budget but that needs a little more work.)

Is that the kind of thing you were thinking of?

Best wishes,

Len

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