Hi there!
Currently I am making a visual novel game as a part of my Game Development studies. I have finished writing all of the code, however there are a few issues. I was wondering if there is a way to call a line of code in the same script, or should I make each chapter have its own script and if so how do I call the separate scripts? I am still learning as I go and any help would be appreciated.
Ren'Py Coding Questions
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
- IronForPistons
- Regular
- Posts: 34
- Joined: Wed Jan 31, 2018 11:25 pm
- Projects: Panzer Hearts (Editor), Picture Perfect Romance (Editor), Children of Cosmos (Editor)
- Organization: Crystal Compass
- Location: USA (Eastern Time)
- Contact:
Re: Ren'Py Coding Questions
Hi there! It sounds like you would benefit from reading through the quickstart guide: https://www.renpy.org/doc/html/quickstart.html
The Ren'Py discord is a great resource as well - feel free to join up and ask questions there! https://discord.gg/6ckxWYm
The Ren'Py discord is a great resource as well - feel free to join up and ask questions there! https://discord.gg/6ckxWYm
Feel free to call me Iron!
Interested in editing or proofreading services? I do both, for free or trade!
Interested in editing or proofreading services? I do both, for free or trade!
Re: Ren'Py Coding Questions
I'm not sure if you're talking about something like that: Developer Tools: Warping to a line?
Or do you simply want to jump to somewhere in your script? Labels & Control Flow
- Sampai
- Newbie
- Posts: 3
- Joined: Tue Jan 29, 2019 10:06 pm
- Tumblr: sampai-gamedev
- itch: itssampai.itch.io
- Contact:
Re: Ren'Py Coding Questions
I shall look into all the links you have both sent me and try to see if any of these solutions work.
- arty
- Regular
- Posts: 120
- Joined: Sat Jan 06, 2018 11:55 am
- Completed: White Monday
- Projects: HATE is a 4 Letter Word
- Organization: KATHARSIS ART
- itch: artys-games
- Contact:
Re: Ren'Py Coding Questions
I would split up the scenes into seperate script files. You can just put a label at the beginning of each file and jump to the label from the end of the previous file.
^at the beginning of the file
^at the end of the previous file
Additionally to the Quickstart Guide, there's also a little Beginner's Tutorial that I wrote in an attempt to simplify the QG (shameless self promotion, sorry): viewtopic.php?f=51&t=50946
Labels are explained on page 8 of the doc.
Code: Select all
label sample1:
blabla your code
Code: Select all
jump sample1
Additionally to the Quickstart Guide, there's also a little Beginner's Tutorial that I wrote in an attempt to simplify the QG (shameless self promotion, sorry): viewtopic.php?f=51&t=50946
Labels are explained on page 8 of the doc.
- Sampai
- Newbie
- Posts: 3
- Joined: Tue Jan 29, 2019 10:06 pm
- Tumblr: sampai-gamedev
- itch: itssampai.itch.io
- Contact:
Re: Ren'Py Coding Questions
Thank you all so much for your help! I managed to get my code working for my game
Who is online
Users browsing this forum: No registered users