Forums

Printing

In certain games (such as undertale) some times they have the text scroll. Is there a way to do that in python? If not is there a way to have it wait a certain amount of time to print some text?

are you talking about from the console? or as part of a webapp/html?

The console.

i guess to wait you can use time.sleep which is part of the python standard library. not really sure/clear how you want to implement your console game to give more suggestions.

or i guess have multiple inputs, in which case users would press enter to go on to the next input

Thank you. One more question in the console is there a way to have the user select from a multiple choice question?

if you write a python script you could use raw_input?

I am still learning python could you give me an example of code?

Sure! There are loads of fun examples of writing console-based python games in this book: https://inventwithpython.com/chapters/. available both free online and as a real book.

Thanks!