# Placing an object in a dressup game

**URL:** <https://forum.kirupa.com/t/placing-an-object-in-a-dressup-game/227311>\
**Category:** Uncategorized\
**Created:** [May 29, 2007, 10:29am UTC](https://forum.kirupa.com/t/placing-an-object-in-a-dressup-game/227311 "2007-05-29T10:29:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackcoma](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@blackcoma](https://forum.kirupa.com/u/blackcoma)\
**Post date:** [May 29, 2007, 10:29am UTC](https://forum.kirupa.com/t/placing-an-object-in-a-dressup-game/227311/1 "2007-05-29T10:29:01Z")

</div>

I know the code to drag objects around in a dressup game,  
my question is, how can I make an object align to the body automatically if it is placed somewhere near the body? (creating some sort of a “magnet” effect)

thanks.:hugegrin:
