hello there,
m presently working on flash8. i have created a game almost complete. but the main problem m facing is as follows....
actually in my game i have stage1 in frame 15 and stage2 in frame 30,the game over screen is in frame 35.
i have setup a counter for life of the player.
what i need to do is when life=0 then frame 35 should be played.
i have used following code for that...
onClipEvent(load){
life=3;
.....other variables....
}
onClipEvent(enterFrame){
if(_root.enemy.hitTest(this)){
life--;
if(life==0){
gotoAndPlay(35);
}
}
....other code of game
}
but its not working...plz help



Bookmarks