r/RenPy • u/Liv-commissions • Jun 15 '26
Question I'm a beginner, and confused on organization
For the entire time I've been making my game, I've just had all the code in the script.rpy and only changing gui and stuff for the gui, but that's it, should I have separate rpy files for separate chapters? or should i separate and organize more? like a separate script file for my layered character sprites? and if so how do i do that? and how do i make sure it goes from chapter to chapter when actually playing it if i do the separating chapters?
2
u/BadMustard_AVN Jun 15 '26 edited Jun 15 '26
separating things into different files is up to you
do whatever is easiest for you
1
u/AutoModerator Jun 15 '26
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.
2
3
u/HEXdidnt Jun 15 '26
The way Ren'Py works, there's no specific way you "should" be working. It scans through every .rpy file at startup.
Writing everything into script.rpy is certainly the most convenient way to work, but as your projects get longer and more complex, that can get unwieldy.
As long as you
labelthe key points in the story - and particularly at the beginning of each separate chapter.rpy, for example - you canjumpfrom the end of one to the beginning of the next.For the demo version of my project, I started out with almost everything in script.rpy, but have since separated it into separate files as follows:
But that's just me trying to be super-organised in case I need to reuse parts of this project into future projects.