Changes the running scene to the one at the given path, after loading it into a PackedScene and creating a new instance.
Returns constantOK on success, constantERR_CANT_OPEN if the path cannot be loaded into a PackedScene, or constantERR_CANT_CREATE if that scene cannot be instantiated.
Note: The scene change is deferred, which means that the new scene node is added on the next idle frame. You won't be able to access it immediately after the changeScene call.
Changes the running scene to the one at the given path, after loading it into a PackedScene and creating a new instance. Returns constant OK on success, constant ERR_CANT_OPEN if the path cannot be loaded into a PackedScene, or constant ERR_CANT_CREATE if that scene cannot be instantiated. Note: The scene change is deferred, which means that the new scene node is added on the next idle frame. You won't be able to access it immediately after the changeScene call.