I want my python program to wait before continuing the loop. But the other functions, loops usw. should work. If I use the sleep-function the whole program would sleep. Example:
import pygame
def function():
print("You moved forward")
turtle.listen()
turtle.onkey(function, "f")
print("use f to move forward")
(Wait 5 seconds, so the player can try pressing f and sees what happens)
Thats a simple version of my original code. I want the player to try WASD cause the character is moved with WASD.
If I'd use time.sleep() it won't work if the player presses f.
Thanks for any answer :D
-> btw sry for my bad english...