A question about easing

Hi! This is my first post on these forums, but I’ve been reading through the many helpful threads for a while now, and I’ve learned so much! Thanks to all that contribute! You have no idea how much it’s helped out this Flash n00b. :slight_smile:

Anyway, to my problem… I’ve been working on a project using the tutorial on mouse follow with easing by Losinbeta. I understood it, and what I’ve done so far works great. (Thanx Lost! Great tutorial!) What I want to do now is make it so my movie clip stops following the mouse once it reaches a certain point along the x axis. Can anyone help me out with this? Any help at all would be appreciated. Thanx!

Theta

No problem Theta :slight_smile:

You can just use an if statement on the onClipEvent(enterFrame) of the movie clip.

Something like this…

if (this._x >= 100) {
this._x = 100;
}

Thanx a bunch. :slight_smile: I’ll give it a go and see what I make of it.

Theta

Let me know how it goes :wink:

It worked great! Just what I was looking for. Thanx again!:slight_smile:

Theta

No Problem :wink: :slight_smile:

BTW: Welcome to kirupa forum, I hope you enjoy it here :slight_smile: