# Moving an mc with as

**URL:** <https://forum.kirupa.com/t/moving-an-mc-with-as/16483>\
**Category:** Uncategorized\
**Created:** [March 25, 2003, 5:09pm UTC](https://forum.kirupa.com/t/moving-an-mc-with-as/16483 "2003-03-25T17:09:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuga](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@shuga](https://forum.kirupa.com/u/shuga)\
**Post date:** [March 25, 2003, 5:09pm UTC](https://forum.kirupa.com/t/moving-an-mc-with-as/16483/1 "2003-03-25T17:09:33Z")

</div>

i have two points on the stage named A and B

A and B are both dragable so they move 🙂 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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 5:52pm UTC](https://forum.kirupa.com/t/moving-an-mc-with-as/16483/2 "2003-03-25T17:52:02Z")

</div>

check this out shuga:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 5:56pm UTC](https://forum.kirupa.com/t/moving-an-mc-with-as/16483/3 "2003-03-25T17:56:30Z")

</div>

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 =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 25, 2003, 5:59pm UTC](https://forum.kirupa.com/t/moving-an-mc-with-as/16483/4 "2003-03-25T17:59:16Z")

</div>

np, glad to help =)

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