Skip to main content
Participant
November 28, 2020
Question

Drag and Drop and Disappear

  • November 28, 2020
  • 2 replies
  • 239 views

Hi everyone! I am working on a game in which if I drag the picture to the right place, the picture will disappear. If it's dragged to the wrong place, it will just go back. Does Captivate support this? Thanks in advance! 

    This topic has been closed for replies.

    2 replies

    Lilybiri
    Legend
    November 29, 2020

    Here is an alternative way without using Object Actions.

    Select (each) Drop target, and in the Format tab, Snap Behavior part, to have the dropped object disappear when correct use one of these 3 possibilities:

    1. Set Depth to Back instead of Front
    2. Set Size to 0 instead of 100%
    3. Set Opacity to 0 instead of 100%

    Another possibility would be to use the InBuilt states for Drag sources and Drop targets, but that may be too much work.

     

    To have the incorrect drag sources return to place, use the Accepted Drag Sources dialog box (with the button Object Actions which you use for Rod's workflow). Uncheck Accept All, set Count to 1 and check the correct answer. By default Go Back will be activated. Here is an example for a situation with 3 drag sources. It has to be done for each of the drop targets.

    RodWard
    Community Expert
    Community Expert
    November 29, 2020

    Yes you can do this with a Drag and Drop interaction slide.  You need to set the Object Actions that are triggered when each drag object is dropped on its correct target to HIDE the object.  There's another option you can select for the overall interaction that has incorrectly dropped objects return to their place.

    Olivia_Author
    Participant
    November 29, 2020

    Many thanks, Rod! Tried this and it worked 🙂