# Bullet holes

**URL:** https://forum.kirupa.com/t/bullet-holes/10979
**Category:** flash
**Created:** [January 10, 2003, 2:25am UTC](https://forum.kirupa.com/t/bullet-holes/10979 "2003-01-10T02:25:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chinabean](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/chinabean/32/136_2.png) [@chinabean](https://forum.kirupa.com/u/chinabean)
#### Post date: [January 10, 2003, 2:25am UTC](https://forum.kirupa.com/t/bullet-holes/10979/1 "2003-01-10T02:25:31Z")

</div>

hey guys,

just wondering if any of you know how to create bullet holes when you click the mouse button.

thanks  
chinabean

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 10, 2003, 2:30am UTC](https://forum.kirupa.com/t/bullet-holes/10979/2 "2003-01-10T02:30:44Z")

</div>

Make an image of a bullet hole in Photoshop or in Flash if you’re good and just have it appear when you click a button.

Your question is a bit vague so that’s the best answer I can give. :-\

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 10, 2003, 2:36am UTC](https://forum.kirupa.com/t/bullet-holes/10979/3 "2003-01-10T02:36:06Z")

</div>

ok, im trying to make it appear where i click the cursor. what would the code be for showind a bullet hole where the cursor is.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [January 10, 2003, 4:10am UTC](https://forum.kirupa.com/t/bullet-holes/10979/4 "2003-01-10T04:10:45Z")

</div>

onClipEvent (mouseDown) {  
i++;  
this.duplicateMovieClip(“bullet”+i, i+1);  
\_root[“bullet”+i].\_x = \_root.\_xmouse;  
\_root[“bullet”+i].\_y = \_root.\_ymouse;  
}

Convert your bullet to a movie clip, call it “bullet” and insert the code above into the clip.

:-\ This is the cheapest way to do it and is a technique I wouldn’t use, but if you are new, this might help, if you already have code and are trying to correct it, publish it here.
