Change scène in visual script

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Zopono
:warning: Old Version Published before Godot 3 was released.

Hi all. I want to switch between two stage with a button.

  • button 1 → scene 2
  • button 2 → scene 1

I managed to follow a tutorial using “GDscript” and “Autoload”, but I do not understand how in Visual script. (sorry for the bad English I’m french)

It should be part of SceneTree VS node, I guess, but I’m unable to do anything on actual master with VS.
If I remember, there is a VS node that allows to write some lines of code and may let you do a get_tree().change_scene


You should wait for the announcement of Godot 3 alpha to expect (nearly and buggy) full feature on visual scripting though.

eons | 2017-01-10 20:44

Thank you Eons! I succeeded with this method :

http://www.zimagez.com/zimage/changerdesceneavecvisualscript.php

Is it correct?

PS: How did you post an image on this forum?

Zopono | 2017-01-11 11:04

The CallInstance sounds weird but seems to be the vsnode for this, check the remote inspector on the debugger to see if the scene is correctly loaded.


Keep in mind that GDScript and Objects are under some feature changes and VS may suffer extra ones to adjust to them, since was not oficially released yet.


For images, if you have direct link, use the image button on top, should add something like the hyperlink one

![enter image description here][1]


  [1]: http://

eons | 2017-01-11 12:51