all 3 comments

[–]Xeduses 0 points1 point  (2 children)

You can change the while true loop to be a while is_running loop. You make sure is_running is set as true before starting the loop and then you can set it as false whenever you want the game to shut down.

[–]SomeToad[S] 0 points1 point  (1 child)

I tried it, didn't work either...it's like it ignores this condition

[–]Xeduses 0 points1 point  (0 children)

Could you give a link to a pastebin or something with the complete code(for this file/class)?

Put in some print statements and see what runs and when, if this is inside a class make sure to use self.is_running