I'm really new to Ren'py, making visual novels, and coding. But for the visual novel I'm making, I wanted to have a character page in the menu. Like where it says save, load, etc. I wanted to have a button for character profiles. Then you would be able to see each characters sprite and their info (such and likes and dislikes). I have absolutely no idea how to do this and would like some help on how to add something like that in.
If I wanted to make each characters profiles unlockables as well, I was wondering how that would work?
Character Profiles in Menu?
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
- Divona
- Miko-Class Veteran
- Posts: 678
- Joined: Sun Jun 05, 2016 8:29 pm
- Completed: The Falconers: Moonlight
- Organization: Bionic Penguin
- itch: bionicpenguin
- Contact:
Re: Character Profiles in Menu?
You will have to learn the screen language.
https://www.renpy.org/doc/html/screens.html
https://www.renpy.org/doc/html/screens.html
Re: Character Profiles in Menu?
Yeah, this.Divona wrote:You will have to learn the screen language.
https://www.renpy.org/doc/html/screens.html
I also recommend these tutorials:
viewtopic.php?f=8&t=9812
http://renpyhandbook.tumblr.com/my-tutorials
viewtopic.php?f=8&t=14237&hilit=tutorial
Profile screens can vary in complexity depending on how you want it to look, will it have categories etc.
If you're new to Ren'py it's probably best to save this for after you understand all the inner working of your standard menus (main menu, navigation, save/load etc). This is probably true of any menu outside the usual.
- papiersam
- Veteran
- Posts: 231
- Joined: Fri Aug 12, 2016 2:24 pm
- Completed: Gem Hunt Beta, 1/Probably, Animunch
- Projects: The Panda Who Dreamed
- Contact:
Re: Character Profiles in Menu?
Those being said, it's important to understand how you're gonna code these characters. Classes or just plain variables work, but I recommend the former. If you're new to coding as well, I'd also recommend learning how to code classes. Something like:
Code: Select all
init -12 python:
class NewChar:
charCount = 0
def __init__(self, name, sprite_im):
#raise ValueError()
NewChar.charCount += 1
self.name = name
self.sprite_im = sprite_im
label start:
$zack = NewChar("Zack")
"A new character names [zack.name] has been added!"
Re: Character Profiles in Menu?
Thank you everyone for the help! I'll look into your link and tutorial's and see how it goes!
Who is online
Users browsing this forum: No registered users