|
-
need help with a small peice of actionscript
life = 100;
onEnterFrame = function () {
if (life<=0) {
this.removeMovieClip();
}
life_txt.text = life;
};
i have this code inside an enemy mc on it's first and only frame and i know that it's life is getting lower via what im reading off of life_txt but for some reason the mc wont remove itself when it's life is below 0.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|