Jump to content
Search Community

ThrowPropsPlugin out of rectangle

Mostafa test
Moderator Tag

Recommended Posts

i need to control my background scrollview with strict rectangle ,
i don't need the ease effect to let the background scroll out of rectangle .


i need easing just inside the rectangle , i mean i need start point and end point to my background .

Link to comment
Share on other sites

Hi, its a little unclear what you are trying to describe.


to constrain the distance an object can be thrown use the min, max values.

If you don't want the target to overshoot its min/max range and ease back within range, set overshootTolerance to 0

ThrowPropsPlugin.to(mc, {throwProps:{x:{velocity:500, max:800, min:0}}}, 1, 2, 0 );
//max X value: 800
//min X value: 0
//minDuration: 1
//maxDuration: 2
//overshootTolerance: 0
Link to comment
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.
  • Create New...