# Simple way to detect movement or rotation?

**URL:** <https://forum.kirupa.com/t/simple-way-to-detect-movement-or-rotation/198623>\
**Category:** flash\
**Created:** [August 26, 2006, 8:29pm UTC](https://forum.kirupa.com/t/simple-way-to-detect-movement-or-rotation/198623 "2006-08-26T20:29:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [August 26, 2006, 8:29pm UTC](https://forum.kirupa.com/t/simple-way-to-detect-movement-or-rotation/198623/1 "2006-08-26T20:29:30Z")

</div>

Is this possible? I know its possible when you use variables that keep records and track back and forth when an x or y has changed or \_rotation has changed, but is there any way to tell:

if(myObject has moved any pixels) {}

or

if(myObject has rotated any direction/amount) {}

?
