From b6b346e8aeaa4b31f4a89b0711e48a08fa802cf5 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 17 May 2015 16:33:35 -0300 Subject: added a built-in scene changer API, closes #1928 --- demos/misc/scene_changer/scene_a.gd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 demos/misc/scene_changer/scene_a.gd (limited to 'demos/misc/scene_changer/scene_a.gd') diff --git a/demos/misc/scene_changer/scene_a.gd b/demos/misc/scene_changer/scene_a.gd new file mode 100644 index 0000000000..956878b0f7 --- /dev/null +++ b/demos/misc/scene_changer/scene_a.gd @@ -0,0 +1,17 @@ + +extends Panel + +# member variables here, example: +# var a=2 +# var b="textvar" + +func _ready(): + # Initalization here + pass + + + + +func _on_goto_scene_pressed(): + get_tree().change_scene("res://scene_b.scn") + pass # replace with function body -- cgit v1.2.3