[SOLVED] problem with animations while displaying 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
Moshibit
Regular
Posts: 48
Joined: Wed Oct 16, 2019 1:58 pm
Location: Mexico
Contact:

[SOLVED] problem with animations while displaying dialog

#1 Post by Moshibit » Wed Feb 26, 2020 1:58 pm

To make this animation I wrote the following script.

Code: Select all

default preferences.text_cps = 15

define s = Character('Sylvie', what_suffix='"',what_prefix='"')

label start:
	
	show Sylvie normal
	s "Text Text text {nw}"
	
	show Sylvie happy
	extend "Text text text."
	
The animation works well. Makes the image change while the text appears. The problem I have is that for a very short time the double quote appears. Is there any way to do the animation without having to delete what_suffix and what_prefix?
Last edited by Moshibit on Tue Mar 03, 2020 11:40 am, edited 1 time in total.

rames44
Veteran
Posts: 232
Joined: Sun May 29, 2016 4:38 pm
Contact:

Re: problem with animations while displaying dialog

#2 Post by rames44 » Fri Feb 28, 2020 12:52 pm

That probably isn’t surprising, given that after it does the first “say,” despite the “no wait” its going to want to show the trailing quote because it doesn’t know an “extend” is coming. Maybe what you could do, just for this sequence, is to use a different Character that doesn’t have the prefix and suffix, and add those quotes int the dialog. That way you don’t have to give them up globally - just when you need to do effects like this.

rayminator
Miko-Class Veteran
Posts: 754
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: problem with animations while displaying dialog

#3 Post by rayminator » Sun Mar 01, 2020 8:35 pm

there is another to show quota's to appear is sentences by using \"

here is a example

Code: Select all

a "\"I don't usually like onigiri from the convenience stores\""
instead of using this what_suffix='"',what_prefix='"'

it's because you are using this what_suffix='"',what_prefix='"' it will show the extra " quota's when a character is talking

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: problem with animations while displaying dialog

#4 Post by Remix » Sun Mar 01, 2020 8:59 pm

You can pass what_ values in on a per line basis... so:

Code: Select all

    s "Text Text text {nw}" (what_suffix="")
Keeps the prefix as normal, loses the suffix for that line...

I have not tried with extend btw, there is a chance that removing the prefix there might get weird or not be needed. If it gets weird try just repeating the line with the first bit as {fast}
Frameworks & Scriptlets:

User avatar
Moshibit
Regular
Posts: 48
Joined: Wed Oct 16, 2019 1:58 pm
Location: Mexico
Contact:

Re: problem with animations while displaying dialog

#5 Post by Moshibit » Tue Mar 03, 2020 11:40 am

Thanks to everyone

Post Reply

Who is online

Users browsing this forum: Bing [Bot], span4ev