# Move to new \_x \_y problem

**URL:** https://forum.kirupa.com/t/move-to-new--x--y-problem/100971
**Category:** Uncategorized
**Created:** [February 4, 2004, 11:17am UTC](https://forum.kirupa.com/t/move-to-new--x--y-problem/100971 "2004-02-04T11:17:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![noneis](https://avatars.discourse-cdn.com/v4/letter/n/b2d939/32.png) [@noneis](https://forum.kirupa.com/u/noneis)
#### Post date: [February 4, 2004, 11:17am UTC](https://forum.kirupa.com/t/move-to-new--x--y-problem/100971/1 "2004-02-04T11:17:26Z")

</div>

OK, so not sure why this is happening and i am wondering if anyone out there could help me out.

I am trying to have 4 different menu sections fly to specific x y cordinates from a randomly generated location. i have figured out how to do this with my first section, but when i try to implement the same code for the other sections they simply “follow” the movment of the first section. so my main question is, how do i modify this so that i can do the same thing to 4 different clips?

I am using a controller clip with 3 frames to tell the section where to go,

heres is the code i am using:

frame 1:  
loops = 0;  
\_root.target\_x = 55  
\_root.target\_y = 29  
\_root.xdiv = (\_root.target\_x-\_root.work.\_x)/12;  
\_root.ydiv = (\_root.target\_y-\_root.work.\_y)/12;

frame2:  
loops++;  
\_root.work.\_x += \_root.xdiv;  
\_root.work.\_y += \_root.ydiv;

frame3:  
loops++;  
\_root.work.\_x += \_root.xdiv;  
\_root.work.\_y += \_root.ydiv;

any help would be greatly appreciated
