Interesting sequence of actions in scenario[SOLVED!]

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
Yuuji
Regular
Posts: 96
Joined: Tue Jan 20, 2015 3:08 am
Location: Russia, Perm
Contact:

Interesting sequence of actions in scenario[SOLVED!]

#1 Post by Yuuji »

Hello! I'm trying to implement one sequence of actions.
1) Begin to play voice file
2) Show first character expression
3) Type first part of text on dialogue screen
4) Wait for... well... for example 1 second
5) Show second character expression
6) Type second part of text
7) Wait for 0.5 seconds
8) Show third character expression
9) Type third part of text
All of that actions should execute as one sequence.
Now I have the following code:

Code: Select all

    $playVoice2('mic', 'op_021')
    show mic_body Tmic03l_1:
        xoffset 512 yoffset 576
    show mic_face Tmic03l_00r:
        xoffset 512 yoffset 576
    with Dissolve(0.50)
    pause 1.0
    show mic_body Tmic03l_1:
        xoffset 512 yoffset 576
    show mic_face Tmic03l_00i:
        xoffset 512 yoffset 576
    with Dissolve(0.50)
    pause 0.5
    show mic_body Tmic03l_1:
        xoffset 512 yoffset 576
    show mic_face Tmic03l_001:
        xoffset 512 yoffset 576
    with Dissolve(0.50)
    michiru "«Моё им… Я Мацусима [persistent.michiru_name].Очень приятно.»"
I studied 'extend' character and know that it can be implemented with it. But is there a way to switch on something like auto-mode on speed I wish?
Something like:

Code: Select all

    #here should be 'auto mode on' statement
    $playVoice2('mic', 'op_021')
    show mic_body Tmic03l_1:
        xoffset 512 yoffset 576
    show mic_face Tmic03l_00r:
        xoffset 512 yoffset 576
    with Dissolve(0.50)
    michiru "«Моё им…"
    pause 1.0
    show mic_body Tmic03l_1:
        xoffset 512 yoffset 576
    show mic_face Tmic03l_00i:
        xoffset 512 yoffset 576
    with Dissolve(0.50)
    extend "Я Мацусима [persistent.michiru_name]."
    pause 0.5
    show mic_body Tmic03l_1:
        xoffset 512 yoffset 576
    show mic_face Tmic03l_001:
        xoffset 512 yoffset 576
    with Dissolve(0.50)
    extend "Очень приятно.»"
    #here should be 'auto mode off' statement
So it's my idea how to implement that. Maybe there are some other ideas? Or at least can you tell me how to implement my idea? I'd appreciate any help.
Last edited by Yuuji on Thu Apr 09, 2015 10:27 am, edited 1 time in total.
There's no point in standing around with your mouth open waiting for talent to fall from the sky. You make your own. No matter what you're doing, the most essential thing is not to give up.

philat
Eileen-Class Veteran
Posts: 1912
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Interesting sequence of actions in scenario

#2 Post by philat »

Well... "auto mode" sounds like you're just looking for the {nw} text tag?

User avatar
Yuuji
Regular
Posts: 96
Joined: Tue Jan 20, 2015 3:08 am
Location: Russia, Perm
Contact:

Re: Interesting sequence of actions in scenario

#3 Post by Yuuji »

Yeah, exactly. Thank you!
There's no point in standing around with your mouth open waiting for talent to fall from the sky. You make your own. No matter what you're doing, the most essential thing is not to give up.

Post Reply

Who is online

Users browsing this forum: No registered users