Recent posts by del9110372_49822 on Kongregate

Flag Post

Topic: Game Programming / Enemy Health AS@

Hi there everyone !

I have problem with enemy health. those are the scripts

Enemy health part

onClipEvent(enterFrame)) { if (this.hitTest(_root.bullet)) { _root.live -= 1; if (_root.live = 0) {

this.removeMovieClip();
}

} }


Variable on first frame of enemy

var live = 3 ;

Anyone have any ideas ?