Can someone help me please?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By

Basically, I’ve created a popup pause menu for my game, which works just fine, but then I created a separate scene for the options but it doesn’t seem to work.

  • Here is the pause menu script:

extends Popup

var notPaused = true

func _process(_delta):
if Input.is_action_just_pressed(“Pause”):
if notPaused:
get_tree().paused = true
notPaused = false
visible = true

  • Here is the options screen script:

extends Button

var options_screen = preload (“res://options_screen.tscn”)

func on_button_pressed(options):

I believe that i have used an incorrect function but do not know what about is wrong. Could someone please help?

:bust_in_silhouette: Reply From: omggomb

Make sure the node to which your popup script is attached to, has its pause mode set to process. Otherwise the node will also be paused an won’t receive the button press for your settings menu to show.

It’s described in the docs here:


  • Please use desciptive titles for questions. It’s easier for people to know straight away if they can help or not.
  • Use code formatting for pasting code, so it is easier to read here. Paste your code and then mark it and click the two curly braces where the other text editing options are.