Dec-01-2021, 08:44 AM
(Dec-01-2021, 05:38 AM)deanhystad Wrote: Is your code like this?Thanks.
time.Clock ().tick (100) display.update () print("I am here")Or like this?
time.Clock ().tick (100) display.update () print("I am here")If the latter you aren't reaching the print statement because you are still in the while True: loop.
I have tried both. Former one will print as many times as it cycles through the loop. I dont want that.
I want to exit from the moving dot program and do something else. But using the latter format, it just does not print the "I am here".
Somehow I need to exit from pygame, I think, to continue to do the rest.