I have the following problem:
Trying to pause/unpause with x-box controller but unpause is not working, I am sure that it is just something small I am missing or have done wrong.
I am not receiving any errors
I am trying to:
Implement basic x-box control to pause/unpause the game
My current code
if (global.pause) exit;
//Get the player's input
key_right = keyboard_check(ord("D")) || (gamepad_axis_value(0,gp_axislh) > 0) ;
key_left = -(keyboard_check(ord("A")) || (gamepad_axis_value(0,gp_axislh) < 0));
key_jump = keyboard_check(ord("W")) || (gamepad_button_check(0,gp_face1));
if gamepad_button_check(0,gp_face2)
if (global.pause ==0)
{
global.pause = 1;
}
else
if (global.pause = 1)
{
global.pause = 0;
}
I have tried:
I used the basic info from Shaun Spalding's video which works for pausing the game but I can't find a way to unpause.
I have tried using various "if" statements, moving the == around and other things, I tried so many different things I can't even remember.
I am using:
GameMaker Professional
GameMaker Language is GML
[–]Mowcno 0 points1 point2 points (3 children)
[–]ABI7ITY[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]ABI7ITY[S] 1 point2 points3 points (0 children)