# Moving Cursor Hitting An Enemy......Help?

**URL:** <https://forum.kirupa.com/t/moving-cursor-hitting-an-enemy-help/326196>\
**Category:** Uncategorized\
**Created:** [November 29, 2011, 12:56am UTC](https://forum.kirupa.com/t/moving-cursor-hitting-an-enemy-help/326196 "2011-11-29T00:56:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blu\_Ra3](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@Blu\_Ra3](https://forum.kirupa.com/u/Blu_Ra3)\
**Post date:** [November 29, 2011, 12:56am UTC](https://forum.kirupa.com/t/moving-cursor-hitting-an-enemy-help/326196/1 "2011-11-29T00:56:14Z")

</div>

Hey, I was trying to make a flash game where a gun cursor hits an enemy…

```
   I got the cursor to move around the screen with the mouse by using:
              Mouse.hide()
              startDrag(MC_cursor,true)

```

but I could not find a code or a tutorial online that would show me a code to make the cursor hit my enemy by clicking.

If anyone could help me it’d be great :party::party::party::party::party:
