my problem is that the while function crashes python when i create a loop that is too simple, like for example
while wait == 1:
time.sleep(0.01)
either
while True:
counter += 1
I am using python 3.7. Thanks in advance.
edit: I know a lot of people think this is an effortless question, but I want those people to know that it worked for me, and it probably worked for more than one too, so please think twice before you take away my reputation necessary to be able to comment and evaluate other questions
To test your question exactly, I've tried both that logically should work:
Y
They both work and give output .
Could we see the full code?
I already figured out how to fix it, all you have to do is add a function that checks pygame.key.get_pressed, pygame.mouse.get_pressed, or any other "input". Something like this: