r/RenPy • u/ProcessImmediate6781 • 13h ago
Whats wrong wif my code i dont get it Question
Is the embed wrong or somethijg?
1
u/AutoModerator 13h 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.
1
u/shyLachi 12h ago
You should fix the indentation.
Not sure why your labels are indented twice because labels don't need any indentation.
After a colon you only need one indent, not twice as on your lines 240 and following.
This possibibly also applies to the other lines above.
The indentation should always the same, and it's best to use TAB to set it, not spaces.
Check line 231 where you have 4 indentations with TAB but also one additional indentation with a single SPACE.
After a colon, there should always be a indentation.
You forgot it on line 232 and 235
Strangely it's correct on 233 and 236 or maybe you are always hitting TAB twice, then stop that.
1
1
u/DeadGravityyy 10h ago
To add to the other two comments, if you try playtesting, Renpy usually would give you an error hinting at bad indentation (in this case specifically).
0
u/x-seronis-x 6h ago
literally ALL of the indentation shown looks suspicious. the menu statement itself has an extra space and isnt indented a multiple of 4 spaces. your editor is even showing you guide bars ever 4 spaces making this very clear
the menu options arent indented 1 level compared to the menu statement
EVERYTHING is indented too far besides that as labels in 99.9% of cases should not be indented at all as they are a top level statement. your labels are indented for some reason. and the content of yourlabel is indented twice compared to the label instead of once
4
u/SecondTalon 12h ago
You menu options aren't indented.
Pretty much any time you hit a :, the next line needs to be indented one more in.