Heres some coding that I have found whilst at home on the internet, trying to find ideas that could help me with my own game.
I've had the idea to add a pause screen to my game which would be really handy, and I have found a bit of coding which looks really simple and I think it would do exactly what I want it too;
here is the website:
http://www.isaackeyet.com/2007/flash-movie-controls-playpause-button/
The only coding it really uses is:
on (release) {
gotoAndStop(2);
_parent.stop();
}
And:on (release) {
gotoAndStop(1);
_parent.play();
}
What this coding basically does is when you release the button, It will stop everything in the parent frame, which should be the main timeline. I hope this works, but because I have some quite complicated coding for my game, i'm hoping that it pauses everything on my egg falling game, because it would have to stop the eggs spawning and falling, and stop the timer.
I would also like to find a back button which works in my game, i already know how to make a simple one, but I havnt been able to work out how to stop the eggs spawning and teh character to dissapear, but i'll hopefully find help with this.
No comments:
Post a Comment