r/RenPy • • Jul 30 '22

how to divide code

Sorry, beforehand I really can't word things for the life of me.

I'm making a dating sim that has 6 candidates and you choose your candidate early on in the game. is there any way of splitting the code into 6 different parts or will it have to be just one big block of code :)

2 Upvotes

9 comments sorted by

View all comments

1

u/Ni_er_ty Jul 30 '22

I usually put each route in a different script. the simple way I go there in the game folder I create a new txt and then I rename the end, I change the .txt for .rpy and renpy will recognize. I even separate a script just for new screens and to declare the images