Nesting Labels

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Nesting Labels

#1 Post by Obscura »

I'd really like to nest several of my labels under other labels, in order to fold more code and navigate my script a little bit easier.

After testing this a bit, it seems like RenPy's able to run just fine with nested labels, being able to jump to a label no matter where it is.

Is there a reason why I shouldn't do this or is there some issue I'm not foreseeing?

Thanks for any and all help.
Coming Out On Top - An Adult Gay Dating Sim
website

User avatar
PyTom
Ren'Py Creator
Posts: 16093
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Nesting Labels

#2 Post by PyTom »

Other then the indentation being deeper, there's no problem with this.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Re: Nesting Labels

#3 Post by Obscura »

Fantastic! Thanks so much, Tom!
Coming Out On Top - An Adult Gay Dating Sim
website

Post Reply

Who is online

Users browsing this forum: Andredron