|
-
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.
-
Style Through Simplicity
Did you attach the movie clip in the first place? removeMovieClip() wont work unless you attached it in the first place.
Ali
-
 Originally Posted by alillm
Did you attach the movie clip in the first place? removeMovieClip() wont work unless you attached it in the first place.
Ali
lol. i didn't. thanks
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
|