Another Scene change question =/ [MX04]
Hi,
I know this sort of question is asked often and I've been searching here about changing scenes, but unfortunately nothing has solved my problem yet.
My game has three scenes, the menu screen, the actual game and a game-over screen.
On the menu screen there is a button to start the game, I use the code:
Code:
on (release) {
gotoAndPlay ("GameEasy") ;
}
This works fine and the scene "GameEasy" is loaded.
However I'm trying to do a similar transition between "GameEasy" and "GameOver" to no avail. When the HP bar reaches 0 I want the scene to change to the game-over scene, this will stop me having to try to stop the music playing in the background and unload all of the movie clips flying about the game (which is the problem I get by simply moving to a different frame on that scene which says "Game Over" etc as the arrows keep moving about and the music keeps playing).
I've tried the same type of code as above (minus the release bit as that code is assigned to a button) inside the HP Bar movie clip on the scene but that doesnt work. I've tried listing the frame label, that doesnt work. I've tried scene name and frame label, nope...Frame label and frame label again, nope. I've tried so many different combinations and I've even tried going back to the Menu scene as I know this scene works correctly and still, nope.
Anyone have any idea whats going on? A better way to do it? Or anything that might help me?
Thanks, Mike.