# Flash CS5: ActionScript 2.0: Code to make a Game cursor kill an enemy

**URL:** <https://forum.kirupa.com/t/flash-cs5-actionscript-2-0-code-to-make-a-game-cursor-kill-an-enemy/326220>\
**Category:** flash\
**Created:** [November 29, 2011, 10:45pm UTC](https://forum.kirupa.com/t/flash-cs5-actionscript-2-0-code-to-make-a-game-cursor-kill-an-enemy/326220 "2011-11-29T22:45:04Z")\
**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, 10:45pm UTC](https://forum.kirupa.com/t/flash-cs5-actionscript-2-0-code-to-make-a-game-cursor-kill-an-enemy/326220/1 "2011-11-29T22:45:04Z")

</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:
