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

Animate CC Drag n drop animation example in HTML5 Canvas

LEGEND ,
Aug 07, 2018 Aug 07, 2018

Copy link to clipboard

Copied

I have not seen much on drag n drop on this forum or otherwise. So I decided to post this example in case someone is interested.

I learned the howto from Martin Melendez on youTube.

(Drag And Drop (Adobe Animate HTML5) - YouTube )

I modified his example to include several items to drag, several items where to drop, a score, disabling of item drag when correct, and return to original position when wrong drop.

Hope this helps someone.

DRAGNDROP.zip - Box

Views

7.4K

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 ,
Aug 07, 2018 Aug 07, 2018

Copy link to clipboard

Copied

This is awesome, resdesign! Really helpful!

I sometimes want to post some snippets/templates/samples but I never know if I should to. Now I'm confident.

And these tutorials from Martin Melendez are really amazing. Learnt a lot from him.

Please keep it up!

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 ,
Jan 09, 2021 Jan 09, 2021

Copy link to clipboard

Copied

Hey. Thanks for sharing that. I have a question:

What would be the code to allow dragging one item to multiple places?

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 Beginner ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

Hello Resdesign,

Thank you very much for sharing this. I also watched the video by Martin Melendez and it was great as well.

Just wondering why we need to have a dot inside the drag items and a hitBox inside the drop item.

I tried to get it to work without them but I could not work out the coordinates. Both of those items seem superflous to me if you get the right offset.

Do you have any thoughts on this?

Kind regards,

Ron

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
Explorer ,
Aug 20, 2023 Aug 20, 2023

Copy link to clipboard

Copied

I would love to see it, but I don't want to sign up for another dropbox.

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 ,
Aug 21, 2023 Aug 21, 2023

Copy link to clipboard

Copied

LATEST

@JimGABC 

 

what problem are you having with drag and drop canvas?

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