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.
-
fullmontis
- Regular
- Posts: 129
- Joined: Sun May 05, 2013 8:03 am
- Deviantart: fullmontis
- itch: fullmontis
- Location: Italy
-
Contact:
#1
Post
by fullmontis » Mon Jul 30, 2018 6:54 am
Is it possible to change the transition of the content of the say window (the "what")? I am not talking about when the screen appears or disappears, but when the text is changed, like when the mouse is clicked to progress the story. I would like it to dissolve between lines.
I tried this but does not seem to work:
Code: Select all
screen say(who, what):
style_prefix "say"
window:
id "window"
if who is not None:
window:
id "namebox"
style "namebox"
text who id "who"
text what at what_transf id "what"
transform what_transf:
on show:
alpha 0.0
linear 0.3 alpha 1.0
on hide:
linear 0.3 alpha 0.0
-
Kia
- Eileen-Class Veteran
- Posts: 1011
- Joined: Fri Aug 01, 2014 7:49 am
- Deviantart: KiaAzad
- Discord: Kia#6810
-
Contact:
#2
Post
by Kia » Tue Aug 14, 2018 12:07 pm
try:
Code: Select all
window:
id "window"
at what_transf
...
but I should warn you, too much transitions can become extremely annoying very fast, I suggest using CPS instead
-
Kinmoku
- Miko-Class Veteran
- Posts: 560
- Joined: Mon Aug 11, 2014 9:39 am
- Completed: One Night Stand
- Projects: Love IRL, Memories
- Tumblr: gamesbykinmoku
- itch: kinmoku
- Location: Germany
-
Contact:
#3
Post
by Kinmoku » Tue Aug 14, 2018 12:12 pm
I can confirm that the effects can get annoying quite quickly... Is there a way to toggle them so they only show up when asked? For example, at the start of a new scene?
Also, I have a similar effect in my game which replays the transition when a wait {w=1} is used. Is there a way to stop it from doing this?
-
Kia
- Eileen-Class Veteran
- Posts: 1011
- Joined: Fri Aug 01, 2014 7:49 am
- Deviantart: KiaAzad
- Discord: Kia#6810
-
Contact:
#4
Post
by Kia » Tue Aug 14, 2018 1:13 pm
you can make a screen with the animation and play that animation whenever you want by showing the screen manually, I've searched for a long time and there's no simple solution to it
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#5
Post
by Imperf3kt » Tue Aug 14, 2018 7:40 pm
You can fake it. Show the textbox and text as an image and dissolve in when necessary.
Remember to hide the real say window first.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
-
Kinmoku
- Miko-Class Veteran
- Posts: 560
- Joined: Mon Aug 11, 2014 9:39 am
- Completed: One Night Stand
- Projects: Love IRL, Memories
- Tumblr: gamesbykinmoku
- itch: kinmoku
- Location: Germany
-
Contact:
#6
Post
by Kinmoku » Wed Aug 15, 2018 1:02 pm
Imperf3kt wrote: ↑Tue Aug 14, 2018 7:40 pm
You can fake it. Show the textbox and text as an image and dissolve in when necessary.
Remember to hide the real say window first.
I like this sneaky tactic, haha!
