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.
-
myfistus_clarvetta
- Newbie
- Posts: 17
- Joined: Thu Aug 26, 2010 6:25 pm
- Projects: K-on!: Alumni Tea Time; Unreachable Man
- Location: Ohio
-
Contact:
#1
Post
by myfistus_clarvetta » Sun Oct 21, 2012 10:18 am
I'm working on a scifi project that will be announced in November, and there are a few scenes where I wish to use parametrized text to indicate when someone is speaking with the protagonist telepathically:
Code: Select all
"Then my mind is flooded with a stunningly beautiful, unhearable voice:"
window hide
scene black
with flash
show text1 "{size=38}{color=#ffff4a}\"Is.....this really true?\"{/color}{/size}"
pause 2.5
show text1 "{size=38}{color=#ffff4a}\"You.....really love me?\"{/color}{/size}"
pause 2.5
hide text1
window show
"I painfully tear my eyes away from hers, and nod."
As you may be able to tell, this is an all important confession scene. Ideally I would like to make it so that the game pauses at
Code: Select all
show text1 "{size=38}{color=#ffff4a}\"Is.....this really true?\"{/color}{/size}"
until the player clicks their mouse and then pauses again in a similar manner for the next line of dialogue.
Is there some way of doing this?
-
Ayutac
- Regular
- Posts: 150
- Joined: Thu Oct 18, 2012 2:23 pm
- Projects: Pokémon Dating Sim
- Organization: A Breeze Of Science
- Deviantart: Ubro
- Location: Mayence, Germany
-
Contact:
#2
Post
by Ayutac » Sun Oct 21, 2012 10:33 am
Isn't that "pausing until click" exactly what the say-screen does? (if the Auto-Forward time is set to infinity)
Up next: An original, open source, text-based Dating Sim. Stay tuned ;)
-
myfistus_clarvetta
- Newbie
- Posts: 17
- Joined: Thu Aug 26, 2010 6:25 pm
- Projects: K-on!: Alumni Tea Time; Unreachable Man
- Location: Ohio
-
Contact:
#3
Post
by myfistus_clarvetta » Sun Oct 21, 2012 11:12 am
I'm not talking about the normal text, I mean specifically this part:
Code: Select all
show text1 "{size=38}{color=#ffff4a}\"Is.....this really true?\"{/color}{/size}"
pause 2.5
show text1 "{size=38}{color=#ffff4a}\"You.....really love me?\"{/color}{/size}"
pause 2.5
hide text1
This causes "Is.....this really true?" to appear as parameterized text in the middle of the screen for two and a half seconds. Then "You.....really love me?" appears for two and a half seconds as parameterized text. And only after that is there normal dialogue/narration with a say statement. If those pauses weren't there, neither one of those words would appear, because renpy treats this kind of parameterized text as an image. I want to be able to pause between those two lines until the player clicks.
-
PyTom
- Ren'Py Creator
- Posts: 15893
- 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:
#4
Post
by PyTom » Sun Oct 21, 2012 11:41 am
You can just use "pause" without a parameter. That will pause until click.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
-
myfistus_clarvetta
- Newbie
- Posts: 17
- Joined: Thu Aug 26, 2010 6:25 pm
- Projects: K-on!: Alumni Tea Time; Unreachable Man
- Location: Ohio
-
Contact:
#5
Post
by myfistus_clarvetta » Sun Oct 21, 2012 12:02 pm
Thank you! All this time.....I thought pause had to have additional parameters.
-
Ayutac
- Regular
- Posts: 150
- Joined: Thu Oct 18, 2012 2:23 pm
- Projects: Pokémon Dating Sim
- Organization: A Breeze Of Science
- Deviantart: Ubro
- Location: Mayence, Germany
-
Contact:
#6
Post
by Ayutac » Mon Oct 22, 2012 12:55 am
On the other hand, my solution basically works, too. I just awakened with the idea of using a boolean variable in the say screen, but OokamiKasumi had a much better
solution
I guess when you're using telepathy just this one time, the solution with pause is easier.
(Also I'm delighted about how much one can learn on this board :D )
Up next: An original, open source, text-based Dating Sim. Stay tuned ;)
-
saguaro
- Miko-Class Veteran
- Posts: 560
- Joined: Sun Feb 12, 2012 9:17 am
- Completed: Locked-In, Sunrise, The Censor
- Organization: Lucky Special Games
- itch: saguarofoo
- Location: USA
-
Contact:
#7
Post
by saguaro » Mon Oct 22, 2012 7:52 am
myfistus_clarvetta, you didn't ask, but you can add the size/color formatting to the parameterized text image definition so you don't have to add text tags for each line.
Code: Select all
image text1 = renpy.ParameterizedText(color=#ffff4a, size=38)
Users browsing this forum: Bing [Bot], Google [Bot], Hojoo