The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

0 votes

When I export my game to android it does not change the scene, it was doing till 3.2.1 it has happened just in 3.2.2

This is the value in the dictionary.

'level_to_load' : 'res://scenes/levels/sand/2.tscn'

I pass many variables through signals and level to load is one of them

func _on_play_pressed():
    get_tree().change_scene(level_to_load)

P.S - This works in the editor and I dynamically generate buttons for each level if present in the dictionary of levels so the dictionary is there too. Its just that its not changing the scene, that too only when exported to android and after upgrading to 3.2.2

in Engine by (32 points)

try:

func _on_play_pressed():
    get_tree().change_scene(load(level_to_load))

I uninstalled the build template and installed it again, that fixed it somehow. Thank you.

Please log in or register to answer this question.

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.