Be a Supporter!

Pause Menu

  • 437 Views
  • 7 Replies
New Topic Respond to this Topic
PuDgE-ball
PuDgE-ball
  • Member since: Nov. 1, 2006
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Pause Menu 2007-08-11 01:09:23 Reply

How do you make a pause menu like....http://www.newgrounds.com/portal /view/381115?
I'm completely lost.


Programmer.

teenagegluesniffer
teenagegluesniffer
  • Member since: Feb. 20, 2006
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Pause Menu 2007-08-11 01:19:53 Reply

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.

PuDgE-ball
PuDgE-ball
  • Member since: Nov. 1, 2006
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to Pause Menu 2007-08-11 01:25:24 Reply

I think this type of flash is too advanced for me....


Programmer.

Stives1111
Stives1111
  • Member since: Sep. 9, 2006
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to Pause Menu 2007-08-11 01:26:54 Reply

Wait what if you change the frame rate to 0 on the press of p? or any key.

teenagegluesniffer
teenagegluesniffer
  • Member since: Feb. 20, 2006
  • Offline.
Forum Stats
Member
Level 10
Blank Slate
Response to Pause Menu 2007-08-11 01:28:45 Reply

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.

Stives1111
Stives1111
  • Member since: Sep. 9, 2006
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to Pause Menu 2007-08-11 01:31:27 Reply

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.

Stives1111
Stives1111
  • Member since: Sep. 9, 2006
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to Pause Menu 2007-08-11 01:32:38 Reply

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...

Kuoke
Kuoke
  • Member since: May. 25, 2006
  • Offline.
Forum Stats
Member
Level 28
Artist
Response to Pause Menu 2007-08-11 01:52:53 Reply

I know how you would do it for a movie... Are you trying to pause a movie or a game?


BBS Signature