So the user could get from the introduction screen to the first level I created a movieclip with the text 'Play' inside it. On this movieclip I then put the following actionscript:
on (release) {
this._y = -10000000
loadMovieNum("beachlevel21.swf", 1);
}
This code means that when the user clicks on the play button, it will move to -10000000 on the y axis so the button can't be clicked during the game and then it loads beach level 21.
Then to get from the first level to the second level I put the following actionscript onto the jungle button:
on (press) {
this._parent.removeMovieClip();
loadMovieNum("junglelevel8.swf", 1);
}
on (release) {
stopAllSounds();
}
this actionscript means the when the button clicks on the jungle level it will remove the current movieclip (the beach level) and load the jungle level and also when the user release their mouse, it stops all the background music.
This is how all the levels and the introduction and postcard pages were linked together.
Friday, 21 May 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment