ForumsProgramming ForumPause Menu

2 2955
BehemothBoy
offline
BehemothBoy
33 posts
Nomad

Hey everyone,

I have already asked this but I didn't really understand the answer. I'm trying to make a pause menu for my maze game. I don't know how to make it so you can't control the character while the pause menu is up. I also want to know if there is a different way to what I have done to stop all the enemies from moving. Thanks in advance.

- BehemothBoy

  • 2 Replies
Captain_J_Sheridan
offline
Captain_J_Sheridan
313 posts
Nomad

Well, back to the Pause == false, you can either add more conditions to your movement ifs or put a big if for everything

Per example, ou probably have something like this now:

if(player press left)
{
go left;
}


Right? Now, how to make it that he doesn't go left if the game is paused

if(player press left and Pause == false)
{
go left;
}


or

if (Pause == false)
{
if(player press left)
{
go left;
}
}


So that when Pause == true, he doesn't move
BehemothBoy
offline
BehemothBoy
33 posts
Nomad

AHHHH, I now get it, thank you very much.

Showing 1-2 of 2