0 votes

So basically that's the problem. I have a start scene that loads at the start of the game (this works in both debug and release, but I think it's because it's the default scene) and then when I want to load the game scene, it works on debug but not on release.

asked Jun 27 in Engine by iama (21 points)

1 Answer

0 votes

Hey so I found the solution. The problem was that I was using "assert" for debugging, and apparently if you use assert, in release that line gets deleted, so it doesn't compile anymore. And that line so happened to load scenes...
So basically, I only had to delete the assert function and everything worked great. There's another way to do it where you store the function in a variable and then check the variable to see if it works with assert later, that way it will both work in debug and release.
I hope that if you had the same problem, this was useful for you!!

answered Jul 1 by iama (21 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 How to use this Q&A? before posting your first questions.