–2 votes

Pretty much im trying to make it so whenever i press the pause button it pauses the game and shows the Popup that has the Pause Menu items inside it but im not able to do it i tried popupmenu.show() and popupmenu.popup()

heres the code `extends Node2D

onready var pausemenu = get_node("Popup")

func onPausepressed():
if get
tree().paused == false:
get_tree().paused = true

    get_tree().paused = false


Godot version 3.2.3.stable
in Engine by (10 points)

1 Answer

0 votes

Set your node2d (the owner of the script) PAUSEMODE as pauseprocess

by (62 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.