Ren'Py Vpunch in the middle of a dialog?

aPieceOfTissue

Newbie
Game Developer
Jan 22, 2019
40
86
Is it possible to have a vpunch in the middle of a dialog? Like:
Python:
label start:
    "Sh...{w}(vpunch)Shut up!"
And I don’t want to separate it into two dialogs.

edit: Possibly maybe add in a sound effect at the middle as well.
 
Last edited:

LightmanP

Well-Known Member
Modder
Game Developer
Oct 5, 2020
1,750
16,558

"Sh...{w}(vpunch)Shut up!" with vpunch

And sure, you can have audio/sounds start between lines.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,979
16,236
"Sh...{w}(vpunch)Shut up!" with vpunch
And sure, you can have audio/sounds start between lines.
Hmm, not exactly, since it will put the vpunch for the whole line, while he want it in the middle of it.

The answer is:
Code:
label whatever:
    MC "Sh...{w=0.1}{nw}"
    extend "Shut up!" with vpunch
Ren'py will display "Sh...", wait 0.1 second ( ), then immediately pass to the next dialog line ( ).
The special sayer will then add the "Shut up!" at the end of the actual dialog line, and apply the vpunch at this moment.