so i want to make a wait function without terminating the whole program in ursina for example
from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController
from time import sleep
app = Ursina()
def input(keys):
global inv
if keys == 'left mouse down':
print("hey")
sleep(1) #here i can move in the game only after 1 sec
print("done")
FirstPersonController()
app.run()
what i want to is do { sleep(1) } and can still move while it's sleeping. tried Threads but it only work once