PDA

View Full Version : [AS2] Making it so that when your score gets to ten, you win the game


changeofseasons71
12-16-2008, 11:19 PM
I am making an avoiding game, and i have basically everything worked out, except how to win.
I have worked on a peice of script for one hour, and cannot figure out how to do it.
the script is

if (_root.score>=10) {
_root.gotoAndStop("winmou");
this.removeMovieClip();
}

Making it so that when your score gets to ten, you win the game. but the frame does not change, and just keeps playing the game. is something wrong? The script is on the frame and there are no errors. Help D=

Hackor Pickel
12-17-2008, 07:56 AM
EDIT: nevermind... =[

pradvan
12-17-2008, 01:33 PM
Where exactly did you put that code?