# Object Follows the Cursor, But Snaps to Grid

**URL:** <https://forum.kirupa.com/t/object-follows-the-cursor-but-snaps-to-grid/281006>\
**Category:** flash\
**Created:** [February 3, 2009, 8:45pm UTC](https://forum.kirupa.com/t/object-follows-the-cursor-but-snaps-to-grid/281006 "2009-02-03T20:45:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NotSatoshi](https://avatars.discourse-cdn.com/v4/letter/n/eada6e/32.png) [@NotSatoshi](https://forum.kirupa.com/u/NotSatoshi)\
**Post date:** [February 3, 2009, 8:45pm UTC](https://forum.kirupa.com/t/object-follows-the-cursor-but-snaps-to-grid/281006/1 "2009-02-03T20:45:21Z")

</div>

I’m trying to make a game that looks low-resolution, and thus I’m upscaling everything by 2x. However, the game is to have a custom cursor, and it ruins the illusion if the cursor follows your mouse every pixel. I want the cursor to follow your mouse, but to snap to every two pixels so as to not ruin the illusion of low resolution. This is possible, right?
