# Creating a "sticky effect"

**URL:** <https://forum.kirupa.com/t/creating-a-sticky-effect/125965>\
**Category:** Uncategorized\
**Created:** [October 19, 2004, 12:15pm UTC](https://forum.kirupa.com/t/creating-a-sticky-effect/125965 "2004-10-19T12:15:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![innoxist](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@innoxist](https://forum.kirupa.com/u/innoxist)\
**Post date:** [October 19, 2004, 12:15pm UTC](https://forum.kirupa.com/t/creating-a-sticky-effect/125965/1 "2004-10-19T12:15:18Z")

</div>

I have an mc called “square”, which is a square. It is placed in a grid, and follows the movement of the mouse. However, it stays in that square of the grid until the \_x or \_y of the mouse is half or more than halfway into the next grid square, so there’s sort of a “sticky” effect.

Hope I’m coherent. Thanks for any help.
