I'm still a beginner at Ren'Py, thanks in advance to anyone who can help me figure this out!
There's a part in a project I'm working on where I want a bunch of different lines of text to pop up at different parts of the screen. Here's a quick mockup of what I'm trying to accomplish:
I want each line to appear individually, and then stay on the screen so that once all of them have appeared they look a little like that.
Initially, I thought about just making each line of text a separate image, since positioning images is easy. But that wouldn't really be ideal, because I think it's best if it still acts like normal text - then the reader can change the speed, or skip through it, or do whatever else they can normally do to control stuff in the textbox. So what would be easiest way for me to have all the different lines of text appear in different places like that?
Showing text at a bunch of different positions
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.
- parttimestorier
- Veteran
- Posts: 429
- Joined: Thu Feb 09, 2017 10:29 pm
- Completed: No Other Medicine, Well Met By Moonlight, RE:BURN, The Light at the End of the Ocean, Take A Hike!, Wizard School Woes
- Projects: Seeds of Dreams
- itch: janetitor
- Location: Canada
- Contact:
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Showing text at a bunch of different positions
Example:
Code: Select all
image text_one = text("some words here")
label start:
show text_one at center
I'm not entirely sure if thats the correct syntax for a text displayable, I'll have to check the documentation to be sure.
Here's the official documentation with examples:
https://www.renpy.org/doc/html/text.htm ... splayables
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- parttimestorier
- Veteran
- Posts: 429
- Joined: Thu Feb 09, 2017 10:29 pm
- Completed: No Other Medicine, Well Met By Moonlight, RE:BURN, The Light at the End of the Ocean, Take A Hike!, Wizard School Woes
- Projects: Seeds of Dreams
- itch: janetitor
- Location: Canada
- Contact:
- parttimestorier
- Veteran
- Posts: 429
- Joined: Thu Feb 09, 2017 10:29 pm
- Completed: No Other Medicine, Well Met By Moonlight, RE:BURN, The Light at the End of the Ocean, Take A Hike!, Wizard School Woes
- Projects: Seeds of Dreams
- itch: janetitor
- Location: Canada
- Contact:
Re: Showing text at a bunch of different positions
Okay, I followed the documentation and now my code looks a bit like this:
Unfortunately, each time it shows a new line, it seems to automatically hide the previous line, even though I didn't tell it to. Does anyone know a way to make all the lines continue to layer onto the screen all together until I tell it to hide them?
Code: Select all
show text "Blah blah blah." at textposition1
pause
show text "Words words words." at textposition2
pause
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: Showing text at a bunch of different positions
Untested, though should be right:
show text "Blah blah." as text_1 at position_1
show text "Blah blah." as text_2 at position_2
Using " as text_1 " and " as something_else " should tell Ren'Py not to reuse an existing displayable.
show text "Blah blah." as text_1 at position_1
show text "Blah blah." as text_2 at position_2
Using " as text_1 " and " as something_else " should tell Ren'Py not to reuse an existing displayable.
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Showing text at a bunch of different positions
Was also going to suggest this.
You'll probably need to define text_01 still.
You should also need to hide text_01, opposed to hide text
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
- parttimestorier
- Veteran
- Posts: 429
- Joined: Thu Feb 09, 2017 10:29 pm
- Completed: No Other Medicine, Well Met By Moonlight, RE:BURN, The Light at the End of the Ocean, Take A Hike!, Wizard School Woes
- Projects: Seeds of Dreams
- itch: janetitor
- Location: Canada
- Contact:
Who is online
Users browsing this forum: Google [Bot]