Jump to content


Photo

Pause menu


  • Please log in to reply
28 replies to this topic

#21 Quazarr

Quazarr

    Neon Ninja

  • GMC Member
  • 183 posts
  • Version:GM:Studio

Posted 11 March 2012 - 10:37 PM

yes
  • 0

#22 RangerX

RangerX

    GMC Member

  • GMC Member
  • 965 posts
  • Version:GM8.1

Posted 11 March 2012 - 10:46 PM

Ok, your obj_pause could instance_create your buttons over the black background I suggested.
You know how to use instance_create() right?

Now in each of those buttons, you need a "mouse left click event" (or whatever right click). This is something that will happen only when you click on the button in question.

Let's say you have a "resume" button and a "save button".

Resume would be the opposite of what your do when you enter the menu:

if(InPause=true)
then
{
instance_activate_all();
background_visible[4]=false;
InPause=false;
}



And your save button is ridiculously easy to do:


game_save(filename);




of yeah, and your buttons needs to know when to destroy themselves. In their step event you can go:


if(InPause==false)
then
{
instance_destroy();
}

Edited by RangerX, 11 March 2012 - 10:48 PM.

  • 0

#23 Quazarr

Quazarr

    Neon Ninja

  • GMC Member
  • 183 posts
  • Version:GM:Studio

Posted 11 March 2012 - 10:53 PM

that did not work i put it in and now it has all the buttons in every room instead of JUST in the pause screen
  • 0

#24 Jakyl11

Jakyl11

    GMC Member

  • GMC Member
  • 3109 posts
  • Version:GM:Studio

Posted 11 March 2012 - 10:55 PM

did you try my resource file on page 1?
just import resources to gm8 or gm8.1
  • 0

#25 Quazarr

Quazarr

    Neon Ninja

  • GMC Member
  • 183 posts
  • Version:GM:Studio

Posted 11 March 2012 - 10:56 PM

Jak i downloaded it but it didnt recognize the file :/
  • 0

#26 Jakyl11

Jakyl11

    GMC Member

  • GMC Member
  • 3109 posts
  • Version:GM:Studio

Posted 11 March 2012 - 10:58 PM

Jak i downloaded it but it didnt recognize the file :/


its a resource file just open gm8 and goto file import resources
  • 0

#27 Quazarr

Quazarr

    Neon Ninja

  • GMC Member
  • 183 posts
  • Version:GM:Studio

Posted 11 March 2012 - 11:03 PM


Jak i downloaded it but it didnt recognize the file :/


its a resource file just open gm8 and goto file import resources


nope didnt work
  • 0

#28 RangerX

RangerX

    GMC Member

  • GMC Member
  • 965 posts
  • Version:GM8.1

Posted 11 March 2012 - 11:18 PM

that did not work i put it in and now it has all the buttons in every room instead of JUST in the pause screen



This is because you didn't destroy them when quiting the pause menu.
Don't forget the buttons needs to check if it's time to get destroyed, review my previous example I am telling you that at the end. :)
In their step event you can go:


if(InPause==false)
then
{
instance_destroy();
}

Edited by RangerX, 11 March 2012 - 11:19 PM.

  • 0

#29 Quazarr

Quazarr

    Neon Ninja

  • GMC Member
  • 183 posts
  • Version:GM:Studio

Posted 12 March 2012 - 01:45 AM

Thanks! it works!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users