Showing images during a fade

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
zoranac
Newbie
Posts: 11
Joined: Fri Aug 31, 2012 4:39 pm
Projects: Forest's Sorrow
Contact:

Showing images during a fade

#1 Post by zoranac »

I was curious if anyone had solutions on how to load sprites during a fade transition so they are all onscreen when the fade is over and the next scene is visible.
I currently have 4 images layered on each other.
top - rain animation
character sprite
frame image
background image

however my code is a bit awkward in the order they show up, but this is in order to hide the opacity of the frame and background and to make it look as nice as I could in this situation.

Code: Select all

scene Frame
    show bg behind Frame with fade
    show character behind rain
    show  rain with dissolve  
this way it transitions from the previous scene with a fade and looks nice, however after the fade it takes a second to show the character and the rain (it is with dissolve now just to look a little nicer with how it is)

if I set the "with fade" on the rain it will load the other images before it actually fades looking even worse.

I could just use photoshop to make these all one image, because it "flashes" to each sprite change i could just make it a new image, however this would require me making 5 separate images for each character sprite due to the rain's animation. and I would like to believe there is an easier way that that to go about it.

hopefully I make sense and you guys have a nice, simple solution...
hopefully...
well anyways, thanks ahead of time!

User avatar
Kato
Miko-Class Veteran
Posts: 649
Joined: Tue Jan 15, 2013 4:45 am
Projects: Memories of Summer Winds
Organization: Blue Sphere Group
Location: Perth, Western Australia
Contact:

Re: Showing images during a fade

#2 Post by Kato »

Code: Select all

scene Frame
    show bg behind Frame 
    show character behind rain with fade
    show  rain with dissolve 
Tried putting the transition after the character like above?
Image Image
Kato, Producer & Programmer for Blue Sphere Group. Current Projects: Memories of Summer Winds

User avatar
zoranac
Newbie
Posts: 11
Joined: Fri Aug 31, 2012 4:39 pm
Projects: Forest's Sorrow
Contact:

Re: Showing images during a fade

#3 Post by zoranac »

Yeah I forgot to mention that one, It shows the frame and bg before actually doing the fade transition and looks pretty bad. similar to putting it on the rain however the character shows up after the fade.

User avatar
Kato
Miko-Class Veteran
Posts: 649
Joined: Tue Jan 15, 2013 4:45 am
Projects: Memories of Summer Winds
Organization: Blue Sphere Group
Location: Perth, Western Australia
Contact:

Re: Showing images during a fade

#4 Post by Kato »

Ah I see, give this a try then:

Code: Select all

scene Frame
show bg behind Frame 
show character behind rain
with fade
show  rain with dissolve 
Image Image
Kato, Producer & Programmer for Blue Sphere Group. Current Projects: Memories of Summer Winds

User avatar
zoranac
Newbie
Posts: 11
Joined: Fri Aug 31, 2012 4:39 pm
Projects: Forest's Sorrow
Contact:

Re: Showing images during a fade

#5 Post by zoranac »

Nah that didn't work. I got it to a point where I will be content with it, however I would still like to know the answer to my original question if anyone has one.

Code: Select all

show black with fade
    show Frame behind black
    show bg behind Frame
    show character
    show rain
    hide black with fade
I just put a black screen over everything while it loads and fade that screen in and out... so it works well enough although I feel like I'm cheating.
Thanks for the help though, Kato.

User avatar
Kato
Miko-Class Veteran
Posts: 649
Joined: Tue Jan 15, 2013 4:45 am
Projects: Memories of Summer Winds
Organization: Blue Sphere Group
Location: Perth, Western Australia
Contact:

Re: Showing images during a fade

#6 Post by Kato »

That's really weird :/

Scene x
show y
show z
with dissolve
show q
with fade

would be read as:

Load Scene x, image y and image z with dissolve THEN show image q with fade.

I'm not sure why it isn't working in your case...
Image Image
Kato, Producer & Programmer for Blue Sphere Group. Current Projects: Memories of Summer Winds

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], AWizardWithWords, Ocelot