Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Karma Blackshaw

Make a line between two elements and with animation as if it's a squishy rope

Recommended Posts

I am making a fish game. So you throw the hook, a fish somehow plays with it so it vibrates a bit. Then you get it back. The problem is, I want to have a line which connects both the hook and the rod. And then animate the line which acts likes a real fishing rod string.

See the Pen zYxXmoQ by karmablackshaw (@karmablackshaw) on CodePen

Share this post


Link to post
Share on other sites

Hey @Karma Blackshaw,

 

You could use DrawSVGPlugin and MotionPathPlugin.
Here is a quick example

 

See the Pen RwNmVPr by mikeK (@mikeK) on CodePen

 

Happy fishing ...

Mikel

  • Like 4
  • Thanks 1

Share this post


Link to post
Share on other sites
13 hours ago, mikel said:

Hey @Karma Blackshaw,

 

You could use DrawSVGPlugin and MotionPathPlugin.
Here is a quick example

 

 

 

 

Happy fishing ...

Mikel

Thank you sir! Literally what I've been looking!

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×