Fade in Fade out

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
Tagumonman55
Newbie
Posts: 20
Joined: Thu Nov 13, 2014 12:56 am
Projects: Legend Of Quadopolia
Deviantart: Tagumonman55
Contact:

Fade in Fade out

#1 Post by Tagumonman55 » Mon Sep 07, 2015 3:53 pm

I'm having trouble with the fade function for my images, I want to use transitions like fade, but they don't actually appear to work, even when I set a time

also, Code Text Wall Warning

Code: Select all

# You can place the script of your game in this file.

# Use \n to make paragraph indents, so the scroll stays smooth
# Declare images below this line, using the image statement.
# eg. image eileen happy = "eileen_happy.png"
init:
    image logo = "QuadopoliaLogo.png"
    image title = "QP1.jpg"
    image Sis = "images/Hitsumi.png"
    image Little = "images/YoungTagu.jpg"
    image Yoshiko = "images/Yoshiko.jpg"
    image titleimage:
        "images/QPL0.png"
        pause 0.1
        "images/QPL1.png"
        pause 0.1
        "images/QPL2.png"
        pause 0.1
        "images/QPL3.png"
        pause 0.1
        "images/QPL4.png"
        pause 0.1
        "images/QPL5.png"
        pause 0.1
        "images/QPL6.png"
        pause 0.1
        "images/QPL7.png"
        pause 0.1
        "images/QPL8.png"
        pause 0.1
        repeat
#Styles
init:
    $ eslow = Character(_(None,),
                        color="#ffffff",
                        what_slow_cps=20,
                        kind=nvl)


# Declare an nvl-version of each character.

# The game starts here.
label start:
    
    stop music
    window hide
    nvl clear
    show Sis
    nvl show dissolve
    play music "bgm/DieLorelei.mp3" #renpy.music.register_channel(music)
    
    eslow "     I remember her face clearly. That cornsilk colored face, with the brightest and whitest of smiles. I remember her spring-green eyes that sparkled with fascination as she gazed upon any of the objects or animals in the world, as if contemplating how something so beautiful could not be seen by everyone. 
           I remember it all. Her soft embrace, as she pulled me closer, determined to never let go. The way she would whisper she loved me into my ear. Her crimson hair, braided on the sides, with the back tied into a bun, but still leaving enough out to flow in the evening breeze. {w}
    \n
    This person I recall is my sister. The person I loved more than anyone in the world. But she’s gone now. She is dead. She will never come back. She will never embrace me and tell me how much she loves me ever again. {w} \n
    \n
    One might ask how it happened… What in this beautiful world could have taken my dear sister from me… The answer is simple. Nothing. It was her own body that took her life, her immune system was deficient, and a terminal illness had no problem spreading because of it. She was right in front of me. 
           I was sitting on the hospital bed, kneeling beside her. She told me she was tired. being a child at the time, I didn’t know what was going on, So… I asked her a simple question."
    
    
    window hide
    nvl clear
    show Little
    
    eslow "                                     “Big Sister…? You’ll play with me again after your nap right?” "
    
    window hide
    nvl clear
    hide Little
    
    eslow "    She took a small, delicate breath, and for the first time I saw my sister cry. She did not frown, she kept that brave smile the entire time, as she embraced me one more time, {w}
    \n “Yes... Of course...” she spoke softly, unable to lie, but more unwilling to tell the truth to her dear five-year old brother, “I promise.” she let go of me and put her hands together. Back then I assumed it was mage craft, but now I know, that it’s a simple action. She was praying. She was praying to God,
           to allow her to keep her promise. To allow her to wake up one more time, so she wouldn’t break her promise. But alas, that promise was broken. The machine that was continuously beeping up until this point had changed to one continuous, drawn out noise."
    
    window hide
    nvl clear
    
    eslow "     I waited a week. Seven days beside my Sister, who had already passed. The doctor’s feared my reaction. I am Tagumon Aotsuki Yatsuray Solaris Hitarus, the Prince of Quadopolia, heir to the throne of the Quadopolian Kingdom.
           I am to be the Fourth King of Quadopolia. That is why they feared me. To them, I was a God who could easily call their number. I could execute them on the spot, not that I would have. And so, on the Seventh day, The Doctor finally worked up the resolve to tell me. My Sister had died. 
           I turned to the man, the doctor who informed me with obvious grimace in his expression. I responded with another question."
    
    
    window hide
    nvl clear
    show Little
    
    eslow "                                     “So… When will she wake up…?” "
    
    hide Little
    hide Sis fade(10.0)
    nvl clear
    

User avatar
Fox Lee
Veteran
Posts: 213
Joined: Sat Oct 18, 2008 1:46 am
Completed: Where Ages Go [NaNo2015]
Projects: Swan x Swan [YuriJam/NaNo16], ♥ON, Guilded Age
Organization: Invincible Ink
Deviantart: foxlee
itch: foxlee
Location: Australia
Contact:

Re: Fade in Fade out

#2 Post by Fox Lee » Mon Sep 07, 2015 9:43 pm

I'm not seeing a lot of fades here, but I think what you're missing is "with".

hide Sis with fade(10.0)

Does that work?
Fox Lee: The Girl Your Mother Warned You About
CleanDirtyFurryPro

Tagumonman55
Newbie
Posts: 20
Joined: Thu Nov 13, 2014 12:56 am
Projects: Legend Of Quadopolia
Deviantart: Tagumonman55
Contact:

Re: Fade in Fade out

#3 Post by Tagumonman55 » Mon Oct 05, 2015 1:23 pm

nope tried it,

User avatar
Jae
Regular
Posts: 192
Joined: Sun Sep 13, 2015 5:41 pm
Projects: Pokémon Academy Life
Location: New York, NY
Contact:

Re: Fade in Fade out

#4 Post by Jae » Mon Oct 05, 2015 4:27 pm

Use Dissolve().

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: Fade in Fade out

#5 Post by trooper6 » Mon Oct 05, 2015 4:59 pm

Jae wrote:Use Dissolve().
Jae is correct, for sprites use Dissolve()
*note the capital D*
If you must use fade, which is better for scenes rather than sprites, use Fade()
*note the capital F*
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]