# Using a variable to delete movie clips

**URL:** <https://forum.kirupa.com/t/using-a-variable-to-delete-movie-clips/150857>\
**Category:** Uncategorized\
**Created:** [June 11, 2005, 12:39am UTC](https://forum.kirupa.com/t/using-a-variable-to-delete-movie-clips/150857 "2005-06-11T00:39:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyroki](https://avatars.discourse-cdn.com/v4/letter/p/a87d85/32.png) [@pyroki](https://forum.kirupa.com/u/pyroki)\
**Post date:** [June 11, 2005, 12:39am UTC](https://forum.kirupa.com/t/using-a-variable-to-delete-movie-clips/150857/1 "2005-06-11T00:39:49Z")

</div>

k in my platform game i have an enemy to shoot at and after getting hit three times i want him to disappear so i tried to make a variable called health and on the hittest add one to it then under that code i put if health equals three to remove the clip but it doesn’t work.i also need help on making the enemy shoot so any help would b great.
