Moving an mc with as

i have two points on the stage named A and B

A and B are both dragable so they move :slight_smile: then i have a clip called ball that i want to bounce between them

basically when it’s _x and _y = that of A i want it to move towards B and when it equals B i want it to move back towards A … wherever they may be.

at first i thought this was going to be simple but i’ve tried like 80 different ways … and nothing is working … ok maybe not 80 but a lot =)

this isn’t anything important so if it’s too hard just let me know and tell me why. i don’t need this, i’m just experimenting with as and trying to learn =)

thanks

check this out shuga:

interesting way of doing that … i tried something like that but couldn’t get it to work. i still don’t really understand how to use endX and endY

guess i’ll go read up on it

thank you =)

np, glad to help =)

check the tutorial on easing on mouse movement here at kirupa for more details :wink: