Hi,
Im developing a game in which the user puts some value of time between 5 and 15 seconds for each play. The game should run until the time reaches its end (value inserted by the user). I’ve not been able to code thi, I’ve tried wait(), diff_time, sleep() but those didn’t work out since sleep() actually stops the processes entirely. What I’m trying to say is, is there a function of time that can run in “background” and when the time ends return some value that I can use for... let’s say an if statement, run the game until that value is returned.
Thank you everyone.