Ask coding questions

← Back to all posts
2
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 (2045) [earned 5 cycles]
View Answer
Commentshotnewtop
1
PYer (2045)

Just use time.sleep() again.

1
MATTHEWBECHTEL (121)

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

1
MATTHEWBECHTEL (121)

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

1
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.

1
PYer (2045)

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

1
MATTHEWBECHTEL (121)

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

1
MATTHEWBECHTEL (121)

Please, let there be.