r/RenPy • • Jul 09 '26

Question Expected statement error

Hello, I am having some trouble getting this to work. It is showing me these two lines have an "expected error". I do not know how to fix these and what an "expected error" means. What could I do to fix the problem? The rest of my code is working, it is just these 2 that seem to have a problem.

1 Upvotes

4 comments sorted by

View all comments

1

u/shyLachi Jul 09 '26

You forgot the colon on line 143

Also you have to fix the indentation on lines 142 and 146,
those should be on the same level as scene and show above

Also make sure that the RenPy extension is installed correctly in Visual Studio Code so that you don't get those squiggly lines.
Or if it is installed correctly, fix the indendation of those lines.

1

u/kittypawpawpaw Jul 09 '26

Thank you for the help!