[Solved] Long transition while user clicks through dialog?

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
User avatar
PatchyDoll
Regular
Posts: 33
Joined: Fri Apr 06, 2012 11:03 pm
Completed: Rock Bottom, Your Swimsuit Jumped Over Its Own Weathercock You Liar!
Projects: In progress: Trigger
Location: Bay Area, CA
Contact:

[Solved] Long transition while user clicks through dialog?

#1 Post by PatchyDoll »

I am trying to create a very slow transition that happens in the background while the player clicks through dialog text. I figured out how to make the window stay up during transitions using "window show", however I don't know how to make the transition happen "in the background" instead of interrupting dialog. The transition itself is a slow dissolve (more than 4 seconds long) of both the background and characters. Any help is really appreciated!
Last edited by PatchyDoll on Sun Apr 15, 2012 4:41 am, edited 1 time in total.

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Long transition while user clicks through dialog?

#2 Post by SundownKid »

You could make overlaid versions of all the stages of the transition in Photoshop and then switch between those after every new text block. Basically switching between, say, 4 gradual images instead of 2 non-overlaid images.

User avatar
PatchyDoll
Regular
Posts: 33
Joined: Fri Apr 06, 2012 11:03 pm
Completed: Rock Bottom, Your Swimsuit Jumped Over Its Own Weathercock You Liar!
Projects: In progress: Trigger
Location: Bay Area, CA
Contact:

Re: Long transition while user clicks through dialog?

#3 Post by PatchyDoll »

SundownKid wrote:You could make overlaid versions of all the stages of the transition in Photoshop and then switch between those after every new text block. Basically switching between, say, 4 gradual images instead of 2 non-overlaid images.
That's one way to do it, but I see that as a last-resort hack. I know what I'm trying to do is possible, because it's been done in several other visual novels. Thanks for the suggestion. I'm looking online for applicable source code but haven't found any yet.

SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: Long transition while user clicks through dialog?

#4 Post by SundownKid »

Alternatively you could make a screen, add the bottom layer below the top layer, and gradually reduce the opacity of the top layer image. I'm not sure if it works, but it SHOULD...

User avatar
PatchyDoll
Regular
Posts: 33
Joined: Fri Apr 06, 2012 11:03 pm
Completed: Rock Bottom, Your Swimsuit Jumped Over Its Own Weathercock You Liar!
Projects: In progress: Trigger
Location: Bay Area, CA
Contact:

Re: Long transition while user clicks through dialog?

#5 Post by PatchyDoll »

Interesting idea! I'll give that a try and see what I come up with.

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Long transition while user clicks through dialog?

#6 Post by Alex »

ATL transforms should be the answer.

Code: Select all

transform my_dissolve:
    on show:
        alpha 0.0
        linear 4.0 alpha 1.0
    on hide:
        linear 4.0 alpha 0.0
    on replace:      # when new image appears
        alpha 0.0
        linear 4.0 alpha 1.0
    on replaced:     # when old image disappears
        linear 4.0 alpha 0.0
        
label start:
    
    scene black
    "Transitions are brake the dialog"
    show eileen normal at center
    with Dissolve(4.0)
    "Like this."

    "But ATL transforms..."
    show eileen normal at left, my_dissolve
    "... are not."
    "So, just create transform you need..."
    show eileen vhappy at right, my_dissolve
    "... and use it."
    "Should work."
    "...."
http://www.renpy.org/doc/html/atl.html

User avatar
PatchyDoll
Regular
Posts: 33
Joined: Fri Apr 06, 2012 11:03 pm
Completed: Rock Bottom, Your Swimsuit Jumped Over Its Own Weathercock You Liar!
Projects: In progress: Trigger
Location: Bay Area, CA
Contact:

Re: Long transition while user clicks through dialog?

#7 Post by PatchyDoll »

Alex wrote:ATL transforms should be the answer.
That did the trick! I now have exactly what I wanted. Thank you so much!

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: Long transition while user clicks through dialog?

#8 Post by nyaatrap »

Alex wrote:ATL transforms should be the answer.
Oh that it. I didn’t tested it, but it can be the ultimate answer to solve many problems existence transitions have :o

Post Reply

Who is online

Users browsing this forum: piinkpuddiin