# bitMapData

**URL:** <https://forum.kirupa.com/t/bitmapdata/243131>\
**Category:** programming\
**Created:** [November 3, 2007, 2:57am UTC](https://forum.kirupa.com/t/bitmapdata/243131 "2007-11-03T02:57:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![habes](https://avatars.discourse-cdn.com/v4/letter/h/e5b9ba/32.png) [@habes](https://forum.kirupa.com/u/habes)\
**Post date:** [November 3, 2007, 2:57am UTC](https://forum.kirupa.com/t/bitmapdata/243131/1 "2007-11-03T02:57:27Z")

</div>

I have code to attach a blood effect movie clip. Right now it slows down the game too much. Is there a way to use bitmapdata to make it run faster?

```auto

for (b=1; b<bulletnum; b++) {
                if (eval("bullet"+b).hitTest(enemy)) {
                    eval("bullet"+b).unloadMovie();
                    enemy.health -= gundamage;
                    var recoilX = enemy._x += Math.cos(player._rotation*Math.PI/180)*recoil;
                    var recoilY = enemy._y += Math.sin(player._rotation*Math.PI/180)*recoil;
                    bloodnum = random(3)+1;
                    var blood = _root.attachMovie("blood"+bloodnum, "blood"+depth, depth++);
                    blood._rotation = player._rotation+180;
                    blood._x = recoilX;
                    blood._y = recoilY;
                    enemy.play();
                }

```
