# Slide and Snap

**URL:** <https://forum.kirupa.com/t/slide-and-snap/315909>\
**Category:** flash\
**Created:** [November 7, 2010, 2:50pm UTC](https://forum.kirupa.com/t/slide-and-snap/315909 "2010-11-07T14:50:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![omnivibe](https://avatars.discourse-cdn.com/v4/letter/o/dbc845/32.png) [@omnivibe](https://forum.kirupa.com/u/omnivibe)\
**Post date:** [November 7, 2010, 2:50pm UTC](https://forum.kirupa.com/t/slide-and-snap/315909/1 "2010-11-07T14:50:22Z")

</div>

I’m having trouble figuring out the code to make an object slide or snap.

I.e. imagine a checkerboard. I want it to be able to move only horizontally or vertically, from any square. But I also want to make it feel smooth like sliding (i.e. not just snap from square to square).

Any ideas?

Thanks!
