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

asked Jul 3 in Engine by hamza_memon (25 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 How to use this Q&A? before posting your first questions.