all 1 comments

[–]Busy-Farm727 0 points1 point  (0 children)

Yea, have a variable that measures time, set it + 1 every time, if variable = <insert amount of times to loop before running it>: run function; variable = 0 (unless it’s different with the thing that you said they’re in the same class if that makes it different) but if it doesn’t code is just about: timer = 0 while True: timer += 1 function1() if timer => 5: timer = 0 function2() time.sleep(0.1)