summaryrefslogtreecommitdiff
path: root/demos/misc/scene_changer/scene_a.gd
diff options
context:
space:
mode:
Diffstat (limited to 'demos/misc/scene_changer/scene_a.gd')
-rw-r--r--demos/misc/scene_changer/scene_a.gd17
1 files changed, 17 insertions, 0 deletions
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