Hi, I'm a beginner on Godot. I want to start by knowing how to change scenes by pressing a key on the keyboard or a button on a gamepad. Here are my scripts except that when I start the scene there is a problem. When I press the key on the keyboard Godot tries to load the 2 scenes at the same time. I understand why indeed it is due to the if keywords before the Input which selects the same input with the same scene. I would like to know how to change scene without trying to load the 2 scenes at the same time. I want when I'm on scene A and press enter key it changes to scene B and vice-versa. Here are some screenshots I made so that you understand my situation
You're using the wrong Input function, should be Input.is_action_just_pressed instead of Input.is_action_pressed.