Hello!
I need a global scene in my 2D game, therefore I made this to global in AutoLoad tab. But in this case this scene always visible, therefore I set its visibility to false in its _ready() function.
But how can I switch it back when I want to see again this scene?
I try this from the Start button of the title scene:
extends Button
onready var palya=preload("res://palya1.tscn")
func _process(delta):
if Input.is_mouse_button_pressed(BUTTON_LEFT):
var p=palya.instance()
add_child(p)
p.visible=true
get_tree().change_scene("res://palya1.tscn")
but nothing happen. I use Godot engine 3.3. Somebody can help me?