Skip to content
Sign upLog in
← Back to Community

Is there a way to have a time command within a wait command?

Profile icon
MATTHEWBECHTEL

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 [earned 5 cycles]
View Answer
Voters
Profile icon
NergisG
Profile icon
KaydenFink
Profile icon
PYer
Profile icon
MATTHEWBECHTEL
Comments
hotnewtop
Profile icon
PYer

Just use time.sleep() again.

Profile icon
MATTHEWBECHTEL

.... brain melt.

@PYer

Profile icon
MATTHEWBECHTEL

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

@PYer

Profile icon
PYer

@MATTHEWBECHTEL
With what?

Profile icon
MATTHEWBECHTEL

Indentingggg.

@PYer

Profile icon
PYer

@MATTHEWBECHTEL
What repl?

Profile icon
JustARatherRidi

Sure, you mean something like this?
https://repl.it/@JustARatherRidi/TIMED-TEXT-EXAMPLE

Profile icon
MATTHEWBECHTEL

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

@JustARatherRidi

Profile icon
MATTHEWBECHTEL

@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:
Cannot infer image mime type

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

Profile icon
PYer

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

Profile icon
MATTHEWBECHTEL

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

Profile icon
MATTHEWBECHTEL

Here. https://repl.it/live/BBMkw9XxuV_jEA


@PYer

Profile icon
MATTHEWBECHTEL

PYER answered first by 1 minute gg.

Profile icon
JustARatherRidi

@MATTHEWBECHTEL
gg

Profile icon
MATTHEWBECHTEL

Please, let there be.