Character dialogue transitions

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
strayerror
Regular
Posts: 159
Joined: Fri Jan 04, 2019 3:44 pm
Contact:

Character dialogue transitions

#1 Post by strayerror »

I have a character where I'd like their dialogue lines to dissolve in and then back out on dismiss.

I know it's possible to dissolve in a specific line (by appending the with clause), but ideally I'd like to specify this in the character definition, and have it apply on dismiss to dissolve out too.

I was hoping something like the below would work, but no joy. Has anyone had cause for this sort of thing before and have a good solution? Thaaanks! :D

Code: Select all

transform barry_dialogue:
    on show, appear:
        alpha 0.
        linear 1. alpha 1.
    on hide:
        alpha 1.
        linear 1. alpha 0.

define barry = Character('Barry', what_at_list=[barry_dialogue])

label start:
    barry "Hello there, hopefully my words have dissolved in, and in a moment will dissolve away again!"

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: Character dialogue transitions

#2 Post by isobellesophia »

strayerror wrote: Thu Oct 17, 2019 2:45 pm ....

I dont think it can be only done with this.. maybe you can search out for character transition function.

You can do this for all charcaters if you want.

Code: Select all

label start:
    window show with dissolve
    "A text with transition" with dissolve
    "Maybe fade works too." with fade 
If not, maybe somebody can help you out.
I am a friendly user, please respect and have a good day.


Image

Image


Post Reply

Who is online

Users browsing this forum: No registered users