Ask coding questions

← Back to all posts
Is there a way to have a time command within a wait command?
MATTHEWBECHTEL (121)

I am using the following within this repl: https://repl.it/@MATTHEWBECHTEL/TIMED-TEXT-EXAMPLE
I want it to say a sentence, then wait like 3 seconds.

Answered by PYer (2049) [earned 5 cycles]
View Answer
Commentshotnewtop
PYer (2049)

Just use time.sleep() again.

MATTHEWBECHTEL (121)

Can I have like a spam email or something? I need you to help me xD. @PYer

MATTHEWBECHTEL (121)

@PYer OK. I fixed some errors and it works sort of better now. Thanks for the advice. There’s another problem now. Btw before I set line 132 to while False: and not while True:

As soon as you reach the corridor room and type 2, it prints line 87 through 89. I want it to print line 83.

PYer (2049)

@MATTHEWBECHTEL then remove the lines you dont want it to print

MATTHEWBECHTEL (121)

Yeah but I'm not sure how to make it so if the user chooses that then goes straight to that line.

MATTHEWBECHTEL (121)

Um....yeah. I didn’t realized how easy it was to do that xD. Thanks. @JustARatherRidi

MATTHEWBECHTEL (121)

Please, let there be.