i have a function which add a pausemenu to the scene(instance) which is triggered by a button press or a quit request(notification)
the function seems to run well when triggered by the button but when its triggered from the quit request the instance isn't added to the scene...
var cam_pos = get_node("Camera2D").get_pos()
var pause_menu = pause_class.instance()
if(what == 7 and get_tree().is_paused() == false):
i tried calling addchild on getparent() and a specific node in the scene but it wont seem to work
I'm using Godot version 1.1 stable, is this a bug that has been fixed in the newer version or am i doing something wrong