# Using \_x and \_y to move MC

**URL:** <https://forum.kirupa.com/t/using--x-and--y-to-move-mc/13750>\
**Category:** Uncategorized\
**Created:** [February 17, 2003, 7:51pm UTC](https://forum.kirupa.com/t/using--x-and--y-to-move-mc/13750 "2003-02-17T19:51:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gencoglu27](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@gencoglu27](https://forum.kirupa.com/u/gencoglu27)\
**Post date:** [February 17, 2003, 7:51pm UTC](https://forum.kirupa.com/t/using--x-and--y-to-move-mc/13750/1 "2003-02-17T19:51:26Z")

</div>

movement using \_x and \_y  
hi,  
following codes are for making a “circle” move along all four edgesof the screen…but some codes are missing…please add some more codes so that my circle(MC) finish its journey…1…go right…2 go down…3 go left and finally go up…to where it first started…  
thanks

onClipEvent (load) {  
this.\_x = 10;  
this.\_y = 10;  
}  
onClipEvent (enterFrame)  
{  
if (this.\_x\<400) {  
this.\_x += 10;  
} else {  
this.\_y += 10;  
}
