How to show what chapter the player is on?
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.
- Pink_Juicy
- Newbie
- Posts: 20
- Joined: Tue Feb 09, 2021 4:09 pm
- Projects: Satirical Dating Simulators...
- IRC Nick: Offset
- Contact:
How to show what chapter the player is on?
This is actually for my friend, xe wants to make a GUI sort of thing that shows what chapter the player is on. Like in the top left corner, it can say "Prologue" or "Chapter 1". I saw that they had done "show image" each time they wanted to state which chapter the player was on and it seemed like a hassle (sorry I can't explain it very well), but I just wanna make it simpler for my friend.
Re: How to show what chapter the player is on?
You can create a screen for this:
And update the variable in your label whenever the chapter name changes:
This way all you have to do is show screen at start (it will stay there until hidden) and hide screen whenever needed:
Code: Select all
screen chapter_name():
text “[variable_name]” xpos 10 ypos 10Code: Select all
$ variable_name = “Chapter 1”Code: Select all
show screen chapter_name- Pink_Juicy
- Newbie
- Posts: 20
- Joined: Tue Feb 09, 2021 4:09 pm
- Projects: Satirical Dating Simulators...
- IRC Nick: Offset
- Contact:
Re: How to show what chapter the player is on?
omg!! Thank you I'll show this to my friend!!emz911 wrote: ↑Sat Apr 24, 2021 4:11 pmYou can create a screen for this:And update the variable in your label whenever the chapter name changes:Code: Select all
screen chapter_name(): text “[variable_name]” xpos 10 ypos 10This way all you have to do is show screen at start (it will stay there until hidden) and hide screen whenever needed:Code: Select all
$ variable_name = “Chapter 1”Code: Select all
show screen chapter_name
Who is online
Users browsing this forum: No registered users