Forum Discussion
TanjaAlbrecht
5 years agoCommunity Member
Change State of Object with Drag&Drop
Hi all!
I would like to create a game where learners have to prepare food with different ingredients, e.g. Strawberry Milkshake. Therefore I aim to have one drop oject (e.g. the blender) and two d...
MariaCS
5 years agoStaff
Hi, Tanja.
Thank you for sharing your .story file!
I'm not sure I fully understand how you want the drag-and-drop to behave. I saw that you have buttons on the right (Streg+C and Win+V), and it seems like you want the layers with the completed food items to appear when Win+V is clicked, depending on how many times they pressed Streg+C.
If that's correct, then you can add triggers that check the variable StrgCClick:

However, you will likely need a way to "clear" the variable if the users change their minds or after the first time they click Win+V. For example:
- Set variable StrgCClick to 0 when the user clicks Win+V
As for the Drag-and-Drop interaction, how do you want it to relate to the buttons on the right?
Related Content
- 10 months ago
- 2 months ago