0

The game does not see the input of the "R" key, I use a

{
    if keyboard_check_pressed(ord("R")) && global.died = true{
        global.died = false;
            room_restart();
    }
}

1 Answers1

1

If you are using a current version of GameMaker, the code in a script should be in a function, e.g.

function scrCheckRestart() {
    if keyboard_check_pressed(ord("R")) && global.died = true{
        global.died = false;
            room_restart();
    }
}
YellowAfterlife
  • 2,967
  • 1
  • 16
  • 24