How to make an image appear via dissolve w textbox in tact

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
pyopyon
Veteran
Posts: 450
Joined: Thu Aug 29, 2013 4:35 am
Completed: https://chouette.itch.io/
Projects: Ocean Pearls, Catching the Fox [NaNo16], Singles
Organization: Jellyfish Parade
Tumblr: jelpiparade
Skype: miss.chouette
Soundcloud: pyopyon
itch: chouette
Contact:

How to make an image appear via dissolve w textbox in tact

#1 Post by pyopyon » Sat Sep 05, 2015 10:38 am

So, I was playing Rune Factory 4 and I thought it was really cute that when characters blush, the blush appears on their cheeks via some sort of dissolve function, like it fades in-- I wanted to implement that in my own game but it comes out like this:

Image

Image

In essence, the text box will disappear, the blush will dissolve in, and then the textbox will reappear. Anything I can do to prevent this while keeping in the dissolving blush effect?
Image ImageImage

WiP: Image

✿ Writer for Trade/Commission ✿

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: How to make an image appear via dissolve w textbox in ta

#2 Post by trooper6 » Sat Sep 05, 2015 10:42 am

Could you show your code? Within [ code][ /code] tags please (without the spaces).
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

User avatar
pyopyon
Veteran
Posts: 450
Joined: Thu Aug 29, 2013 4:35 am
Completed: https://chouette.itch.io/
Projects: Ocean Pearls, Catching the Fox [NaNo16], Singles
Organization: Jellyfish Parade
Tumblr: jelpiparade
Skype: miss.chouette
Soundcloud: pyopyon
itch: chouette
Contact:

Re: How to make an image appear via dissolve w textbox in ta

#3 Post by pyopyon » Sat Sep 05, 2015 12:08 pm

Ah, right.

Code: Select all

            show ba_6
            
            show ba_b with dissolve
            
            ba "..."
            
            $ pov_expr = "mhm"
            
            pov ".....?"
            
            hide ba_b
            
            hide ba_6
Image ImageImage

WiP: Image

✿ Writer for Trade/Commission ✿

User avatar
Darim
Regular
Posts: 67
Joined: Sun Jun 21, 2015 4:17 pm
Organization: Setsuna Ken
Github: SetsunaKen
Location: Germany
Contact:

Re: How to make an image appear via dissolve w textbox in ta

#4 Post by Darim » Sat Sep 05, 2015 12:17 pm

You can insert a pause after show ba_b with dissolve this will prevent that the textbox appears.

Code: Select all

            show ba_6
            
            show ba_b with dissolve
            
            $ renpy.pause(3.0)            

            ba "..."
            
            $ pov_expr = "mhm"
            
            pov ".....?"
            
            hide ba_b
            
            hide ba_6

User avatar
pyopyon
Veteran
Posts: 450
Joined: Thu Aug 29, 2013 4:35 am
Completed: https://chouette.itch.io/
Projects: Ocean Pearls, Catching the Fox [NaNo16], Singles
Organization: Jellyfish Parade
Tumblr: jelpiparade
Skype: miss.chouette
Soundcloud: pyopyon
itch: chouette
Contact:

Re: How to make an image appear via dissolve w textbox in ta

#5 Post by pyopyon » Sat Sep 05, 2015 12:45 pm

I tried that and it just made the textbox delay for three seconds.
Image ImageImage

WiP: Image

✿ Writer for Trade/Commission ✿

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: How to make an image appear via dissolve w textbox in ta

#6 Post by trooper6 » Sat Sep 05, 2015 1:32 pm

So I need to ask you a few questions about how you are doing things.

You have two images, ba_6 and ba_b
You also have the character ba.

1) Could you show the code where you define those three things?
2) What exactly are those images? Are they both the full sprite but the second one is full sprite plus blush? Is the first one the sprite and the second just the blush? How exactly have you set up the art? Because I would give you different advice depending on what the answer to that question is.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

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

Re: How to make an image appear via dissolve w textbox in ta

#7 Post by nyaatrap » Sat Sep 05, 2015 1:32 pm

I don't understand fully what you want to do, but most of transition problem is came from With statement layer problem - it can't control layers.
I don't know why the general With statement can't have layer property. Anyway, you have to use renpy.transition() statement instead of With statement.
(I'm using renpy.transtion instead of with statement in 90% of case in my game. with statement is useless because of no layer statement)

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: How to make an image appear via dissolve w textbox in ta

#8 Post by trooper6 » Sat Sep 05, 2015 1:36 pm

Oh also, another quick question to clarify what you want to happen. Do you want the text box to stay visible the entire time? If you do, try putting:

Code: Select all

window show
Right after your label start.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]