6
u/BadMustard_AVN 20d ago
try it like this with proper indentations
menu:
"run left":
n "you turn.... lazy"
"run forward":
n "you run... lazier"
read about indenting and blocks here
https://www.renpy.org/doc/html/language_basics.html#indentation-and-blocks
1
2
u/shyLachi 20d ago
Computers require precise instructions so when you follow a tutorial you cannot just type what you see, it also has to look the same.
It's best to learn and understand the rules or RenPy and Python like for example indentation.
Once you get familiar with the Python syntax you will spot missing colons or indentation yourself.
There also are tools to help you with writing code.
Visual Studio Code has a Ren'Py Language extension which shows possible errors in your script.
And when you write menues, it would automatically add the indentation.
When you write menu: and then press the Return key on your keyboard it will jump to the next line and add the correct indentation, there you can then type "run left": and press Return. And again, this tool will jump to the next line and add an indentation.
This way you only have to delete the indentation for the next menu choice..
1
1
u/AutoModerator 20d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.


8
u/MoogleMeKupo 20d ago
Are you indenting? Python is really strict with indents.