stormshadow
07-21-06, 07:24 PM
if((_root.health>0) && (_root.score<100)){
//game
gotoAndStop(1);
}else if(_root.health<=0){
//losing message
gotoAndStop(2);
}else if(_root.score>=100){
//winning message
gotoAndStop(3);
}else{
//losing message
gotoAndStop(2);
}
i used that on a frame... it has its own layer... but what happens is when your playing the game (frame 1) and your health gets 0 or lower... nothing happens, but it is supposed to bring you to the losing message... (frame2)
there is the same problem with the score...
//game
gotoAndStop(1);
}else if(_root.health<=0){
//losing message
gotoAndStop(2);
}else if(_root.score>=100){
//winning message
gotoAndStop(3);
}else{
//losing message
gotoAndStop(2);
}
i used that on a frame... it has its own layer... but what happens is when your playing the game (frame 1) and your health gets 0 or lower... nothing happens, but it is supposed to bring you to the losing message... (frame2)
there is the same problem with the score...