# Help:variable constantly checking for x&y

**URL:** <https://forum.kirupa.com/t/help-variable-constantly-checking-for-x-y/201636>\
**Category:** Uncategorized\
**Created:** [September 23, 2006, 11:59am UTC](https://forum.kirupa.com/t/help-variable-constantly-checking-for-x-y/201636 "2006-09-23T11:59:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chevron8653](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@chevron8653](https://forum.kirupa.com/u/chevron8653)\
**Post date:** [September 23, 2006, 11:59am UTC](https://forum.kirupa.com/t/help-variable-constantly-checking-for-x-y/201636/1 "2006-09-23T11:59:06Z")

</div>

hi there i was wondering how i can create a variable that constantly checks the x and y coordinates of a mc called drag\_mc and if the y coordinate is higer then the starting point or lower then the starting point a mc called slider\_mc plays its animation forward normally or in reverse.

thanks help appreciated
