0 votes

I want to do something if the game freezes or rather do something after it doesn't freeze anymore.

in Engine by (378 points)

1 Answer

0 votes

I could be wrong, but I believe the answer to your question is no.

The game "freezing" could be it performing computations in the background, and thus it seems to pause and not accept user input, as it is currently running something. If you wanted to do something before or after this "freeze" you would need to identify the points in your code that the pause begins and ends, which you could do with print statements.

If the game freezing is actually freezing, meaning no code is being executed during this time, then there is no piece of code you could run, since no code is being executed. Additionally, what would bring it out of this freeze state? If it really is freezing, the program shouldn't randomly resume execution later, and if that is what it does then it's really just executing code in the background. But once again, you can determine this with print statements.

by (76 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.
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 webmaster@godotengine.org with your username.