# Emulate a screw driver + screw

**URL:** <https://forum.kirupa.com/t/emulate-a-screw-driver-screw/230008>\
**Category:** flash\
**Created:** [June 21, 2007, 11:05pm UTC](https://forum.kirupa.com/t/emulate-a-screw-driver-screw/230008 "2007-06-21T23:05:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpxnamja](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kpxnamja](https://forum.kirupa.com/u/kpxnamja)\
**Post date:** [June 21, 2007, 11:05pm UTC](https://forum.kirupa.com/t/emulate-a-screw-driver-screw/230008/1 "2007-06-21T23:05:55Z")

</div>

For a simple game I am making, I was wondering if any of you can help me make some sort of a screw emulation.

There’s a base screw-head and once the screwdriver is at hand, while pressing the left mouse button, the user must make circular motions around the screw head a couple times to screw open the screw. Is this possible?

I have tried several small pseudo codes, but to no avail.

I tried using a pseudo drag and drop combined with the \_rotation methods, but my actual code fails.

I tried following this code:

Detect left mouse click.  
If (clicked near the screw) -\>

```
  Get the original mouse locations _xmouse & _ymouse
  drag the invisible MC

```

Can someone lead me?  
thanks
