# Moving function

**URL:** <https://forum.kirupa.com/t/moving-function/168681>\
**Category:** Uncategorized\
**Created:** [November 9, 2005, 8:00am UTC](https://forum.kirupa.com/t/moving-function/168681 "2005-11-09T08:00:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [November 9, 2005, 8:00am UTC](https://forum.kirupa.com/t/moving-function/168681/1 "2005-11-09T08:00:36Z")

</div>

I’m looking for a script that makes a movieclip move to a certain x position (\_x = -563) and when it reach that x position it should jump back to its original position (\_x = 0 and start moving again to \_x = -563

Just like a loop
