Drag and Drop and Disappear

New Here ,
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

41

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
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.

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Many thanks, Rod! Tried this and it worked 🙂

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Lilybiri LATEST
Most Valuable Participant ,
Nov 29, 2020

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more