Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
GreenBeak

ThrowPropsPlugin x-direction problem

Recommended Posts

Hi guys,

 

I just tried the ThrowPropsPlugin to move a MovieClip in x-direction instead of y-direction like in the example. I took the code from the example and changed every y-value to an x-value. However, it doesn't seem to work smoothly. The drag-movement is somewhat stuttered. Strangely enough, the drag-movement where the position exceeds the bounds runs smoothly. I've attached a minimal working example, maybe someone can have a look and tell me where the code goes wrong.

 

For some reason I'm not allowed to attach any file, so I'll just upload to my Dropbox: https://dl.dropboxusercontent.com/u/289091/ThrowPropsPluginTest.fla

Link to post
Share on other sites

Hi,

 

I definitely saw the stuttering in your file. At first glance your code looked quite good and I could not find the problem.

 

I've attached a file that I had laying around that throws along the x axis.

Perhaps it will help you find the issue or you can just use it as a template.

 

Oh, and to attach files they need to be zipped first.

 

throwPropsX.fla.zip

  • Like 1
Link to post
Share on other sites

Wow. It took me literally almost 30 minutes to find the error. For what it's worth. My offset was wrong. I was using the MovieClip's mouseX-Value instead of the stage's... no wonder it stuttered! Thanks for your example file!

  • Like 2
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×