• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Drag and Drop and Disappear

New Here ,
Nov 28, 2020 Nov 28, 2020

Copy link to clipboard

Copied

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! 

Views

120

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 28, 2020 Nov 28, 2020

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 28, 2020 Nov 28, 2020

Copy link to clipboard

Copied

Many thanks, Rod! Tried this and it worked 🙂

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 29, 2020 Nov 29, 2020

Copy link to clipboard

Copied

LATEST

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.

AcceptedDragSource.PNG

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources