I have a game loop which essentially is just:
While running
game logic
End While
I have a stop button which when pressed sets running to False, however it cannot be pressed as there is an infinite loop happening, and the program cannot be exited with the exit button, but needs to be stopped in Visual Basic.
What's a better way to handle this so other things can still be done while this loop is happening?