Topic was automatically imported from the old Question2Answer platform.
Asked By
vonflyhighace2
Old Version
Published before Godot 3 was released.
Is there a way to basically yield a function in order to wait for user input, then resume after from where it left off? I’ve tried using the yield statement but I just can’t get it to work. can Anyone share an example of how its done?
I figured a solution to my own problem. The best route I found was to run a while loop in another thread polling for a value, leaving the main loop open and preventing stalls. This combined with the yield statement gave me the functionality I was looking for.