Page 1 of 1

Fade in Fade out

Posted: Mon Sep 07, 2015 3:53 pm
by Tagumonman55
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
    

Re: Fade in Fade out

Posted: Mon Sep 07, 2015 9:43 pm
by Fox Lee
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?

Re: Fade in Fade out

Posted: Mon Oct 05, 2015 1:23 pm
by Tagumonman55
nope tried it,

Re: Fade in Fade out

Posted: Mon Oct 05, 2015 4:27 pm
by Jae
Use Dissolve().

Re: Fade in Fade out

Posted: Mon Oct 05, 2015 4:59 pm
by trooper6
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*