0 votes

get_tree().change_scene("scene") works perfectly well for Windows Desktop release, but it kickes me outta game in Android release. I alternatively tried to call scene through variable and even custom _func(), yet no luck.

Is there any alternative way of calling scenes that would work for Android? It's a bit frustrating to have this problem without apparent reason.

in Engine by (335 points)

I just tried the alternatives below:

1) get_tree().change_scene_to(load("scene"))
2) get_tree().change_scene_to(preload("scene"))

Still no luck.

Debugger's "Errors" section returns this message: "The function change_scene() returns a value, but this value is never used".

Output section returns this message (if that's related at all):
"scene/resources/resourceformattext.cpp:1190 - res://defaultenv.tres:1 - Parse Error:
0 param: --xr
1 param: --use
2 param: --use
3 param: --debug_opengl"

1 Answer

0 votes
Best answer

SOLVED: a png image in CanvasLayer was causing problem (for no reason though). Once it was removed, change_scene works fine in Android.

by (335 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.