[SOLVED] Using Two Transitions at Once?

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
Johny_Bobman
Newbie
Posts: 3
Joined: Thu Oct 10, 2019 4:33 pm
Contact:

[SOLVED] Using Two Transitions at Once?

#1 Post by Johny_Bobman »

Hi guys,

If I have an image and "narration" dialogue that I want to play at the same time as the image before it, is there a way to do that? For example, here is my code:

Code: Select all

show tc_fire at truecenter with dissolve
"As long as you can remember, you’ve heard the same old story whispered by worn elders gathered around glowing campfires:" with dissolve
I want both the image "tc_fire" and the text below it to dissolve in at the same time. Is this possible??

Solved! Thank you all for your contributions. I think the best, most simple approach is to use "scene" instead of "show."
Last edited by Johny_Bobman on Sat Oct 12, 2019 11:30 pm, edited 1 time in total.

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Contact:

Re: Using Two Transitions at Once?

#2 Post by hell_oh_world »

Johny_Bobman wrote: Thu Oct 10, 2019 4:51 pm Hi guys,

If I have an image and "narration" dialogue that I want to play at the same time as the image before it, is there a way to do that? For example, here is my code:
I want both the image "tc_fire" and the text below it to dissolve in at the same time. Is this possible??
Try this one:

Code: Select all

show tc_fire at truecenter
"As long as you can remember, you’ve heard the same old story whispered by worn elders gathered around glowing campfires:"

with dissolve
https://www.renpy.org/doc/html/displayi ... -statement

Or if it doesn't work use ATL instead.

Code: Select all

transform quick_dissolve:
	align (0.5, 0.5) alpha 0.0
	easein 0.5 alpha 1.0 ## easein 0.5 is the duration of dissolve, change it to match the duration of the dissolve of text
	
label start:
	show tc_fire at quick_dissolve
	"As long as you can remember, you’ve heard the same old story whispered by worn elders gathered around glowing campfires:" with dissolve
https://www.renpy.org/doc/html/atl.html#on-statement

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Using Two Transitions at Once?

#3 Post by Imperf3kt »

For dissolving in text and the background at the same time, you want to to use the scene command instead of show
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

User avatar
Kia
Eileen-Class Veteran
Posts: 1040
Joined: Fri Aug 01, 2014 7:49 am
Deviantart: KiaAzad
Discord: Kia#6810
Contact:

Re: Using Two Transitions at Once?

#4 Post by Kia »

I would use a screen for this
https://www.renpy.org/doc/html/screens.html

Post Reply

Who is online

Users browsing this forum: No registered users