The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.38 / 5.00 36,385 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 13,902 ViewsHow do you make a pause menu like....http://www.newgrounds.com/portal /view/381115?
I'm completely lost.
Programmer.
set a variable paused to false
then do an if key is released for p button...then have it change paused to true or false
then do an if statement for if paused = true...have it add your movieclip for your pause menu...and also if you have code for like the left mouse button, add if paused != true to your movement code...same with the rest of your code that you don't want to work if the game is paused
i explained that poorly, oh well, deal.
I think this type of flash is too advanced for me....
Programmer.
Wait what if you change the frame rate to 0 on the press of p? or any key.
At 8/11/07 01:26 AM, Stives1111 wrote: Wait what if you change the frame rate to 0 on the press of p? or any key.
You can't do that...frame rate has to be between 0.1 and 120.
1.) make a mc (your puase menu)
2.)on that mc put something like
on (release) {
this.play();
}
3.) On the first frame of the mc put stop(); Also make sure its nothing on the first frame ( you dont want your puase menu to always be there.
4.) Tween fade it in or something and on the last frame put stop(); and find the code to change the frame rate to 0 and put that in the last frame.
5.) the make it to where you press p that mc plays.
6.) after the last frame make it to where if you press p again it plays again and on the new last frame make the frame rate change back to 0.
Sorry if that didnt make scence but im not sure if it will work.
At 8/11/07 01:28 AM, teenagegluesniffer wrote:At 8/11/07 01:26 AM, Stives1111 wrote: Wait what if you change the frame rate to 0 on the press of p? or any key.You can't do that...frame rate has to be between 0.1 and 120.
meh then there goes my idea....you cant even force it somehow to be 0...but i guess if it was 0 it couldn't go back. So yea that won't work i think...
I know how you would do it for a movie... Are you trying to pause a movie or a game?