Pause menu
#21
Posted 11 March 2012 - 10:37 PM
#22
Posted 11 March 2012 - 10:46 PM
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.
#23
Posted 11 March 2012 - 10:53 PM
#24
Posted 11 March 2012 - 10:55 PM
just import resources to gm8 or gm8.1
#25
Posted 11 March 2012 - 10:56 PM
#26
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
#27
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
#28
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.
#29
Posted 12 March 2012 - 01:45 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











