Character Sprite Not Appearing In Scene(SOLVED)

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.
Message
Author
User avatar
amaturemanga
Regular
Posts: 97
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Character Sprite Not Appearing In Scene(SOLVED)

#1 Post by amaturemanga »

Hey everyone i was working a scene and in one of my scenes my character sprite isn't appearing in the scene. Basically i have 2 routes in my game a hero route and a villain route in both routes there is a scene that almost identical to each other the only difference is what the player is thinking in the scene. In hero route the sprite appears no problem but in the villain route no sprite appears at all i don't even get an error. Only the dialogue appears it's as if i never coded the sprite to appear in the game in the first place here are the codes for both of the scenes

hero scene

Code: Select all

 label herohousefront:
            show housefront with slowfade
            play music "Carefree.mp3" fadein 2.0
            story "After that strange flashback we walk outside to leave to school"
            story "I lock the door and grab my stuff and turn towards Saki"
            show Saki smiling with fastblinds
            s "\"Well that's it then right your ready to go?\""
            player"\"Yes, that's it let's go\""
villain scene

Code: Select all

 label evilhousefront:
            show housefront with slowfade
            play music "Carefree.mp3" fadein 2.0
            story "After Saki's punch in the face. I made my own breakfast afterwhich we walk outside to leave to school"
            story "I lock the door while rubbing my forehead from Saki's punch, grab my stuff and then turn towards Saki"
            show Saki smiling with fastblinds
            s "\"Well that's it then right your ready to go?\""
            player"\"Yes, that's it let's go\""
Last edited by amaturemanga on Fri Jul 15, 2016 7:35 pm, edited 1 time in total.

User avatar
78909087
Veteran
Posts: 277
Joined: Sat Aug 16, 2014 2:33 pm
Completed: Dungeons and Don't Do It, Wake Up
Projects: Lethe
IRC Nick: Pacermist
Contact:

Re: Character Sprite Not Appearing In Scene

#2 Post by 78909087 »

Probably off-topic, but is the code you've pasted here identical to the code in your game? The indentation seems... Irregular.
I am not friends with the sun.
Image

User avatar
chocoberrie
Veteran
Posts: 254
Joined: Wed Jun 19, 2013 10:34 pm
Projects: Marshmallow Days
Contact:

Re: Character Sprite Not Appearing In Scene

#3 Post by chocoberrie »

I agree with 78909087, the indentation has 12 spaces when you only need 4. Try this:

Code: Select all

 label herohousefront:
    show housefront with slowfade
    play music "Carefree.mp3" fadein 2.0
    story "After that strange flashback we walk outside to leave to school"
    story "I lock the door and grab my stuff and turn towards Saki"
    show Saki smiling with fastblinds
    s "\"Well that's it then right your ready to go?\""
    player"\"Yes, that's it let's go\""
And:

Code: Select all

 label evilhousefront:
    show housefront with slowfade
    play music "Carefree.mp3" fadein 2.0
    story "After Saki's punch in the face. I made my own breakfast afterwhich we walk outside to leave to school"
    story "I lock the door while rubbing my forehead from Saki's punch, grab my stuff and then turn towards Saki"
    show Saki smiling with fastblinds
    s "\"Well that's it then right your ready to go?\""
    player"\"Yes, that's it let's go\""
Also, did you use Saki in the image definition, with a capital S? If you want the same sprite to show up in both scenes, double check that the image is correct:

Code: Select all

image Saki = "FILE NAME HERE"

User avatar
amaturemanga
Regular
Posts: 97
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: Character Sprite Not Appearing In Scene

#4 Post by amaturemanga »

chocoberrie wrote:I agree with 78909087, the indentation has 12 spaces when you only need 4. Try this:

Code: Select all

 label herohousefront:
    show housefront with slowfade
    play music "Carefree.mp3" fadein 2.0
    story "After that strange flashback we walk outside to leave to school"
    story "I lock the door and grab my stuff and turn towards Saki"
    show Saki smiling with fastblinds
    s "\"Well that's it then right your ready to go?\""
    player"\"Yes, that's it let's go\""
And:

Code: Select all

 label evilhousefront:
    show housefront with slowfade
    play music "Carefree.mp3" fadein 2.0
    story "After Saki's punch in the face. I made my own breakfast afterwhich we walk outside to leave to school"
    story "I lock the door while rubbing my forehead from Saki's punch, grab my stuff and then turn towards Saki"
    show Saki smiling with fastblinds
    s "\"Well that's it then right your ready to go?\""
    player"\"Yes, that's it let's go\""
Also, did you use Saki in the image definition, with a capital S? If you want the same sprite to show up in both scenes, double check that the image is correct:

Code: Select all

image Saki = "FILE NAME HERE"
yes i did define it exact i just don't understand why it works in one scene and not the other i even copied and pasted it from the hero scene which is the one its working in

Code: Select all

image Saki smiling="Saki10.png"
hero scene

Code: Select all

 label herohousefront:
            show housefront with slowfade
            play music "Carefree.mp3" fadein 2.0
            story "After that strange flashback we walk outside to leave to school"
            story "I lock the door and grab my stuff and turn towards Saki"
            show Saki smiling with fastblinds
            s "\"Well that's it then right your ready to go?\""
            player"\"Yes, that's it let's go\""
villain scene

Code: Select all

label evilhousefront:
            show housefront with slowfade
            play music "Carefree.mp3" fadein 2.0
            story "After Saki's punch in the face. I made my own breakfast afterwhich we walk outside to leave to school"
            story "I lock the door while rubbing my forehead from Saki's punch, grab my stuff and then turn towards Saki"
            show Saki smiling with fastblinds
            s "\"Well that's it then right your ready to go?\""
            player"\"Yes, that's it let's go\""

User avatar
78909087
Veteran
Posts: 277
Joined: Sat Aug 16, 2014 2:33 pm
Completed: Dungeons and Don't Do It, Wake Up
Projects: Lethe
IRC Nick: Pacermist
Contact:

Re: Character Sprite Not Appearing In Scene

#5 Post by 78909087 »

In those examples you just provided, the hero scene has a space before the label, whereas the villain scene does not. Have you checked to make sure absolutely all the indentation is the same?
I am not friends with the sun.
Image

User avatar
amaturemanga
Regular
Posts: 97
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: Character Sprite Not Appearing In Scene

#6 Post by amaturemanga »

78909087 wrote:In those examples you just provided, the hero scene has a space before the label, whereas the villain scene does not. Have you checked to make sure absolutely all the indentation is the same?
just tried it didn't work :(

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Character Sprite Not Appearing In Scene

#7 Post by gas »

It's VERY strange.
I have only two toughts.
1: it depend on something you're doing before those labels
2: an unicode error. What editor are you using?

Altough you're posting wrong indentation again and again.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
amaturemanga
Regular
Posts: 97
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: Character Sprite Not Appearing In Scene

#8 Post by amaturemanga »

gas wrote:It's VERY strange.
I have only two toughts.
1: it depend on something you're doing before those labels
2: an unicode error. What editor are you using?

Altough you're posting wrong indentation again and again.
im using jEdit just in case its not a unicode error here's my entire script

Code: Select all

# You can place the script of your game in this file.
init:
    $ g = Character("???", show_two_window=True)
# Declare images below this line, using the image statement.
image mainmenu = "hypnotic_student.png"
image ctc_animation = Animation("ctcarrow01.png", 0.2, "ctcarrow02.png", 0.2, xalign=0.9, yalign=0.9)
image ctc_animation2 = Animation("ctcarrow03.png", 0.2, "ctcarrow04.png", 0.2, xalign=0.9, yalign=0.9)
image ccbackground = "cc_background.png"
image firstscene = "hallway.jpg"
image secondscene = "path.jpg"
image thirdscene = "slapbackground.jpg"
image wakeup1 ="blur.jpg"
image wakeup2 = "unblur.jpg"
image Saki impatient = "saki1.png"
image Saki surprised ="saki2.png"
image Saki mad1="saki3.png"
image Saki blush="saki4.png"
image Saki annoyed="Saki5.png"
image breakfast="kitchen.png"
image Saki confused="Saki6.png"
image livingroom="livingroom.jpg"
image Saki sighing="saki7.png"
image flashback hero="pathhero.jpg"
image Saki shocked="Saki8.png"
image Saki pissed="Saki9.png"
image dragonrage ="dragon.jpg"
image kitchen ="kitchen.png"
image knockout = "darkness.png"
image housefront = "housefront.jpg"
image prologuetitle ="prologue.jpg"
image Saki smiling="Saki10.png"



# Declare characters used by this game.
define story = Character(None, kind = nvl, ctc = None)
define g = Character("???", show_two_window=True, ctc="ctc_animation2", ctc_position="nestled")
define player = Character("[playername]", show_two_window=True, ctc="ctc_animation2", ctc_position="nestled")
define s = Character("Saki Itsuka", show_two_window=True, ctc="ctc_animation2", ctc_position="nestled")
define fastdissolve = Dissolve(0.2)
define fastblinds = ImageDissolve(im.Tile("blindstile.png"), 0.2, 8)
define mediumblinds = ImageDissolve(im.Tile("blindstile.png"), 0.5, 8)
define flash = Fade(.25, 0, .75, color="#fff")
define slowfade = Fade(1.0,0.0,1.0)
define doubleslowfade = Fade(2.0,1.0,2.0)
# The game starts here.
label splashscreen:
    scene black 
    $ renpy.pause(1)
    
    show text "The following story is a work of fiction and contain fantasy situations and does not reflect hypnosis in real life" with dissolve
    $ renpy.pause(2)
    
    hide text with dissolve
    $renpy.pause(1)
    
    $ renpy.pause(1)
    
    show text "AmatureManga Productions Presents\na story by: AmatureManga   and   Character Art by: SilverKazeNinja" with dissolve ## fix
    $ renpy.pause(2)
    play music "Metaphysik.mp3"
    hide text with dissolve
    $renpy.pause(2)
    
    $ renpy.pause(2)
    
    show text "Character Sprites By: AmatureManga"with dissolve ## fix
    $ renpy.pause(2)
    hide text with dissolve
    return ## fix
    
label start:
    stop music
    play music "Necropolis.mp3"
    with dissolve
    scene ccbackground
    call screen character_customization_screen
    $ story = Character(None, ctc="ctc_animation", ctc_position="fixed", kind=nvl)
    with dissolve
    
    window show dissolve
    $ playername = renpy.input("Please enter your character's name below.")
    $ playername = playername.strip()
    if not playername:
        $playername = "Flayer Yu"
    window hide dissolve  
    stop music
show prologuetitle with doubleslowfade
play music "Fallen Angels.mp3" fadein 6.0
show firstscene with slowfade

story "I am walking down a dark corridor. It is a corridor I am intimately familiar with."
story "This is a dream I have almost every night."
story "I can feel the darkness. A cold chill runs up my spine; hair standing on end, skin engulfed in goosebumps."
story "I know what lies ahead. I have seen it more times than I dare to remember."
story "Every fiber in my being is screaming for me to stop, to turn back and flee."
story "But I know..."
story "I know I cannot because this is a dream."

nvl clear 
window hide fade

show secondscene with dissolve 
story "I hesitantly turn the corner, knowing that resistance is futile, and find myself in front of that same damn door."
story "Dread fills me as I reach for the doorknob. I would rather not, but I know my only option is to move forward."
story "The door opens to a familiar, dark, abandoned room."
story "I step gingerly onto to the familiar stone-colored carpet."
story "Nausea tries to overcome me as I see the familiar blood stains on the carpet."
story "But it doesn't end there; I can feel the familiar wooziness as I see the blood staining the wall in a deep red, oozing into every crack, every contour, of these old, wooden walls."
nvl clear
window hide fade(2)

story "But I know what I must do, as I have seen this dream many times before."
story "But it never gets any easier."
story "I look over to the two badly painted doors I know await me in the center of the room."
story "I read the familiar signs on each of the doors: one says 'Hero', the other says 'Villain'."
story "Even though I've never been past either of these doors, I know somehow, that something terrible lies beyond those doors."
story "However, that terrible something is also an amazing something."
story "I find it disconcerting that I'm still not sure how I know that."
nvl clear
window hide fade

story "Regardless, I can only go through one of the two doors, so I stop a moment, consider my options with what little information I have been allowed."
story "I gulp and make my decision."
story "Slowly, hesitantly, I make my way over to the door I have chosen, and grip the knob tightly."
story "But, just as I start to turn the knob..."
nvl clear
window hide fade
stop music
$renpy.pause(1)
g "\"WAKE UP YOU STUPID IDIOT!!\"" 

scene thirdscene 
show thirdscene
play sound "SLAP.mp3"
$ renpy.pause()

scene wakeup1 with dissolve
show wakeup1 
play music "Two Finger Johnny.mp3"
player "\"Uuugh... Man, that hurt.\""
story "I slowly sit up on my bed, feeling a warm, pulsing pain in my red cheek."
story "Rubbing it, i look to my right and i see that familiar impatient girl..."


show wakeup2 with dissolve
hide wakeup1 
show Saki impatient with fastblinds
s "\"Seriously, you know you're really pathetic, right? You need to start getting up on your own..\""
nvl clear
window hide fade

player "\"Haha! Like you're one to talk. Correct me if I'm wrong, but wasn't it just the other day that I had to wake you up?\""
hide Saki impatient with fastdissolve
show Saki surprised with fastdissolve
s"\"Huh?\""
hide Saki surprised with fastdissolve
show Saki mad1 with fastdissolve
s "\"I-Idiot!\""
hide Saki mad1 with fastdissolve
show Saki blush with fastdissolve
s"\"Hmph! Idiot. You know very well that I was sick that time.\""

story "Meet Saki Itsuka. My impatient next door neighbor and childhood friend."
story "About a year ago, my parents got a job offer in America."
story "It was a really good deal and they couldn't pass it up, but I wanted to stay in Japan."
story "Luckily, Saki's family offered to keep an eye on me while my parents are away."
story "Saki's been coming over everyday to help me out around the house ever since, though she'd never admit it to anyone."
story "She's like that; very proud and very protective of her reputation."
nvl clear
window hide fade

player "\"Hehe, careful now. That attitude is gonna make you fat someday.\""
hide Saki blush with fastdissolve
show Saki annoyed with fastdissolve
s "\"Hey! What's that suppose to mean? Are you trying to get me to hit you again?\""
player "\"Oh, come on, Saki. You know i'm just trying to mess with you.\""
hide Saki annoyed with fastdissolve
show Saki blush with fastdissolve
s "\"Yeah, yeah, just hurry up and get up already. We're going to be late for class at this rate.\""
hide Saki blush with fastblinds
story "Hesitantly, I leave the warm comfort of my bed and stretch. "
story "Evidently, this is not expedient enough for my childhood friend, who pushes my back to get me to hurry up."
nvl clear
window hide fade

stop music
show breakfast with mediumblinds
hide wakeup2
play music "Feelin Good.mp3"
player "\"I know, I know, I'm hurrying. Would you quit pushing me already?\""
show Saki impatient with fastblinds
s "\"[playername]...I don't care what you say, just hurry up and make your breakfast already. I don't want to be late to class again!"
story "Saki... I see you're just as much of a dictator as you've always been." 
story "I think to myself as I step into the kitchen to prepare breakfast." 
story "But then, as I begin my normal routine to make my breakfast..."
story "AS SAKI ORDERED BY THE WAY!!"
story "...a strange thought pops into my head..."
nvl clear
window hide fade

hide Saki impatient with fastdissolve
show Saki confused with fastdissolve
s"\"Hmm? What's wrong [playername]\""
player "\" Oh it's nothing. I just have a lot on my mind right now.\""
hide Saki confused with fastblinds
story "Yeah, there's no way I could tell her what I'm thinking about right now."
story "I better listen to her and get started on breakfast now..."
story "HOWEVER... I could try and see if I can convince her to make my breakfast for me."
story "But if it doesn't work, I have to face the dragon's rage again."
story "Brrrrr... I shiver just thinking about it."
story "So now, I have to make a decision"
nvl clear
window hide

stop music fadeout 1.0
story "I..."
nvl clear
window hide

menu:
    "Listen to Saki, and make your own breakfast":
        jump breakfastheroscene
        label breakfastheroscene:
        story "Yes, that's right what am i thinking?"
        story "The last time i suffered the dragon's rage i ended up in the hospital."
        story "A trip to the hospital...THAT I WILL HAVE TO PAY FOR...is not worth a free breakfast."
        nvl clear
        window hide
        
        label secondheroscene:
        show livingroom with dissolve
        hide breakfast 
        play music "Carefree.mp3" 
        story "After having my breakfast, Saki walks over to the living room as i finish getting my stuff ready to leave."
        window hide dissolve
        show Saki sighing with fastblinds
        story "She sighs- as  impatient as ever, i see- and glances at her phone, worried that she'll be late as she always is"
        nvl clear
        window hide
        
        s"\"[playername]... are you ready to go yet? We're going to be late.\""
        player "\"Yeah i'm ready to go...Your Majesty\""
        hide Saki sighing with fastblinds
        
        story "Saki ignores my snide comment, as she opens the door and leaves my house."
        story "Seeing how i didn't want to delay Her Majesty any further. I pick up my things and walk towards the door."
        story "But, as i'm walking towards the door..."
        nvl clear
        window hide
        stop music fadeout 1.0
        
        show flashback hero
        with flash
        hide flashback hero
        with flash
        
        player"\"Huh?\""
        story "What was that just now? I could of sworn the door from my dream just flashed in front of my eyes..."
        story "I think to myself as i turn around and see nothing is there."
        nvl clear
        window hide
        
        label herohousefront:
            show housefront with slowfade
            play music "Carefree.mp3" fadein 2.0
            story "After that strange flashback we walk outside to leave to school"
            story "I lock the door and grab my stuff and turn towards Saki"
            show Saki smiling with fastblinds
            s "\"Well that's it then right your ready to go?\""
            player"\"Yes, that's it let's go\""
            
            
    "Convince Saki to make your breakfast":
        jump breakfastvillainscene
        label breakfastvillainscene:
        story "Hehehe...Yes that's right, she did hit me afterall."
        story "It's time i fought back, from all the times she's picked on me in the past."
        story "I am a guy, afterall; not a wuss. I am not going to let Saki torment me like this anymore."
        story "Besides, if I choose the correct words, I won't have to suffer the dragon's rage."
        nvl clear
        window hide
        
        play music "Feelin Good.mp3" fadein 1.0
        player"\"Hey, Saki... do you mind if I ask you something?\""
        show Saki confused with fastblinds
        s"\"Umm... sure, I guess? What is it?\""
        player"\"Yeah.. this is kinda embarassing. But could you make my breakfast for me? That way, I can get ready for class.\""
        
        stop music
        hide Saki confused with fastdissolve
        show Saki shocked with fastdissolve
        story "The moment I said this, i could feel the air around me grow significantly colder and sharper."
        story "It was as if time itself, had become shocked at what i had just said to Saki."
        story "...Which, by all accounts, was not a good sign."
        nvl clear
        window hide
        
        scene kitchen  # show the background
        show Saki pissed with fastdissolve  # show the sprite
        play music "Minima.mp3" fadein 3.0
        s"\"Ho-oh! What was that? Did i just hear you correctly? Did you just ask me to make your breakfast?"
        story  "Uh-oh, no doubt about it. I triggered it. It's..."
        stop music
        play sound "dragonroar.mp3"
        show dragonrage behind Saki with hpunch   # Show the dragon
        play music "Lusus Naturae.mp3" fadein 3.0
        story "THE DRAGON'S RAGE!!"
        hide dragonrage with dissolve
        show breakfast behind Saki with dissolve
        
        story "My heart starts to race, as Saki begins to walk towards me."
        story "Instinctively, my body backs up towards the wall, sensing the danger that is closing in on me with that innocent smile
        on her face"
        story "I swallow some saliva, as the fear mounts and i try and calm myself down."
        story "Ok, [playername], think! You have to calm her down! It's the only way your going to get out of this situation!"
        nvl clear
        window hide
        
        player "\"I-I'm sorry, Saki. Please understand, it's not like i asked you to be my slave or anything; I just thought that would make
        things easier and faster."
        s"\"Oh! So now your calling me your slave is that it?"
        player "\"No-no-no, I-I just thought-"
        story "As i try and calm her down, i don't know if it's from personal experience or not but my body already knows what's coming
        next."
        show dragonrage behind Saki with dissolve
        hide dragonrage with dissolve
        story "The dragon raises it's claw and..."
        stop music
        play sound "Super Punch MMA.mp3"
        show knockout
        $renpy.pause()
        story "I see nothing but darkness."
        nvl clear
        window hide
        
        jump evilhousefront
        label evilhousefront:
            show housefront with slowfade
            play music "Carefree.mp3" fadein 2.0
            story "After Saki's punch in the face. I made my own breakfast afterwhich we walk outside to leave to school"
            story "I lock the door while rubbing my forehead from Saki's punch, grab my stuff and then turn towards Saki"
            show Saki smiling with fastblinds
            s "\"Well that's it then right your ready to go?\""
            player"\"Yes, that's it let's go\""
       
        
        
    
    
    
        
  
   
    

return

User avatar
chocoberrie
Veteran
Posts: 254
Joined: Wed Jun 19, 2013 10:34 pm
Projects: Marshmallow Days
Contact:

Re: Character Sprite Not Appearing In Scene

#9 Post by chocoberrie »

Again, your indentation is all over the place, I think that's why the sprite isn't appearing when you use the show statement.

Fix the indentation by changing the number of spaces in front of each line, as shown below.

Code: Select all

# You can place the script of your game in this file.
init:
    $ g = Character("???", show_two_window=True)
    
# Declare images below this line, using the image statement.

    image mainmenu = "hypnotic_student.png"
    image ctc_animation = Animation("ctcarrow01.png", 0.2, "ctcarrow02.png", 0.2, xalign=0.9, yalign=0.9)
    image ctc_animation2 = Animation("ctcarrow03.png", 0.2, "ctcarrow04.png", 0.2, xalign=0.9, yalign=0.9)
    image ccbackground = "cc_background.png"
    image firstscene = "hallway.jpg"
    image secondscene = "path.jpg"
    image thirdscene = "slapbackground.jpg"
    image wakeup1 ="blur.jpg"
    image wakeup2 = "unblur.jpg"
    image Saki impatient = "saki1.png"
    image Saki surprised ="saki2.png"
    image Saki mad1 = "saki3.png"
    image Saki blush = "saki4.png"
    image Saki annoyed="Saki5.png"
    image breakfast="kitchen.png"
    image Saki confused="Saki6.png"
    image livingroom="livingroom.jpg"
    image Saki sighing="saki7.png"
    image flashback hero="pathhero.jpg"
    image Saki shocked="Saki8.png"
    image Saki pissed="Saki9.png"
    image dragonrage ="dragon.jpg"
    image kitchen ="kitchen.png"
    image knockout = "darkness.png"
    image housefront = "housefront.jpg"
    image prologuetitle ="prologue.jpg"
    image Saki smiling="Saki10.png"

# Declare characters used by this game.

    define story = Character(None, kind = nvl, ctc = None)
    define g = Character("???", show_two_window=True, ctc="ctc_animation2", ctc_position="nestled")
    define player = Character("[playername]", show_two_window=True, ctc="ctc_animation2", ctc_position="nestled")
    define s = Character("Saki Itsuka", show_two_window=True, ctc="ctc_animation2", ctc_position="nestled")
    
    define fastdissolve = Dissolve(0.2)
    define fastblinds = ImageDissolve(im.Tile("blindstile.png"), 0.2, 8)
    define mediumblinds = ImageDissolve(im.Tile("blindstile.png"), 0.5, 8)
    define flash = Fade(.25, 0, .75, color="#fff")
    define slowfade = Fade(1.0,0.0,1.0)
    define doubleslowfade = Fade(2.0,1.0,2.0)

    # The game starts here.
label splashscreen:
    scene black 
    $ renpy.pause(1)
    
    show text "The following story is a work of fiction and contain fantasy situations and does not reflect hypnosis in real life" with dissolve
    $ renpy.pause(2)
    
    hide text with dissolve
    $renpy.pause(1)
    
    $ renpy.pause(1)
    
    show text "AmatureManga Productions Presents\na story by: AmatureManga   and   Character Art by: SilverKazeNinja" with dissolve ## fix
    $ renpy.pause(2)
    play music "Metaphysik.mp3"
    hide text with dissolve
    $renpy.pause(2)
    
    $ renpy.pause(2)
    
    show text "Character Sprites By: AmatureManga"with dissolve ## fix
    $ renpy.pause(2)
    hide text with dissolve
    return ## fix
    
label start:
    stop music
    play music "Necropolis.mp3"
    with dissolve
    scene ccbackground
    call screen character_customization_screen
    $ story = Character(None, ctc="ctc_animation", ctc_position="fixed", kind=nvl)
    with dissolve
    
    window show dissolve
    $ playername = renpy.input("Please enter your character's name below.")
    $ playername = playername.strip()
    if not playername:
        $playername = "Flayer Yu"
    window hide dissolve  
    stop music
    show prologuetitle with doubleslowfade
    play music "Fallen Angels.mp3" fadein 6.0
    show firstscene with slowfade

    story "I am walking down a dark corridor. It is a corridor I am intimately familiar with."
    story "This is a dream I have almost every night."
    story "I can feel the darkness. A cold chill runs up my spine; hair standing on end, skin engulfed in goosebumps."
    story "I know what lies ahead. I have seen it more times than I dare to remember."
    story "Every fiber in my being is screaming for me to stop, to turn back and flee."
    story "But I know..."
    story "I know I cannot because this is a dream."

    nvl clear 
    window hide fade

    show secondscene with dissolve 
    story "I hesitantly turn the corner, knowing that resistance is futile, and find myself in front of that same damn door."
    story "Dread fills me as I reach for the doorknob. I would rather not, but I know my only option is to move forward."
    story "The door opens to a familiar, dark, abandoned room."
    story "I step gingerly onto to the familiar stone-colored carpet."
    story "Nausea tries to overcome me as I see the familiar blood stains on the carpet."
    story "But it doesn't end there; I can feel the familiar wooziness as I see the blood staining the wall in a deep red, oozing into every crack, every contour, of these old, wooden walls."
    nvl clear
    window hide fade(2)

    story "But I know what I must do, as I have seen this dream many times before."
    story "But it never gets any easier."
    story "I look over to the two badly painted doors I know await me in the center of the room."
    story "I read the familiar signs on each of the doors: one says 'Hero', the other says 'Villain'."
    story "Even though I've never been past either of these doors, I know somehow, that something terrible lies beyond those doors."
    story "However, that terrible something is also an amazing something."
    story "I find it disconcerting that I'm still not sure how I know that."
    nvl clear
    window hide fade

    story "Regardless, I can only go through one of the two doors, so I stop a moment, consider my options with what little information I have been allowed."
    story "I gulp and make my decision."
    story "Slowly, hesitantly, I make my way over to the door I have chosen, and grip the knob tightly."
    story "But, just as I start to turn the knob..."
    nvl clear
    window hide fade
    stop music
    $renpy.pause(1)
    g "\"WAKE UP YOU STUPID IDIOT!!\"" 

    scene thirdscene 
    show thirdscene
    play sound "SLAP.mp3"
    $ renpy.pause()

    scene wakeup1 with dissolve
    show wakeup1 
    play music "Two Finger Johnny.mp3"
    player "\"Uuugh... Man, that hurt.\""
    story "I slowly sit up on my bed, feeling a warm, pulsing pain in my red cheek."
    story "Rubbing it, i look to my right and i see that familiar impatient girl..."


    show wakeup2 with dissolve
    hide wakeup1 
    show Saki impatient with fastblinds
    s "\"Seriously, you know you're really pathetic, right? You need to start getting up on your own..\""
    nvl clear
    window hide fade

    player "\"Haha! Like you're one to talk. Correct me if I'm wrong, but wasn't it just the other day that I had to wake you up?\""
    hide Saki impatient with fastdissolve
    show Saki surprised with fastdissolve
    s"\"Huh?\""
    hide Saki surprised with fastdissolve
    show Saki mad1 with fastdissolve
    s "\"I-Idiot!\""
    hide Saki mad1 with fastdissolve
    show Saki blush with fastdissolve
    s"\"Hmph! Idiot. You know very well that I was sick that time.\""

    story "Meet Saki Itsuka. My impatient next door neighbor and childhood friend."
    story "About a year ago, my parents got a job offer in America."
    story "It was a really good deal and they couldn't pass it up, but I wanted to stay in Japan."
    story "Luckily, Saki's family offered to keep an eye on me while my parents are away."
    story "Saki's been coming over everyday to help me out around the house ever since, though she'd never admit it to anyone."
    story "She's like that; very proud and very protective of her reputation."
    nvl clear
    window hide fade

    player "\"Hehe, careful now. That attitude is gonna make you fat someday.\""
    hide Saki blush with fastdissolve
    show Saki annoyed with fastdissolve
    s "\"Hey! What's that suppose to mean? Are you trying to get me to hit you again?\""
    player "\"Oh, come on, Saki. You know i'm just trying to mess with you.\""
    hide Saki annoyed with fastdissolve
    show Saki blush with fastdissolve
    s "\"Yeah, yeah, just hurry up and get up already. We're going to be late for class at this rate.\""
    hide Saki blush with fastblinds
    story "Hesitantly, I leave the warm comfort of my bed and stretch. "
    story "Evidently, this is not expedient enough for my childhood friend, who pushes my back to get me to hurry up."
    nvl clear
    window hide fade

    stop music
    show breakfast with mediumblinds
    hide wakeup2
    play music "Feelin Good.mp3"
    player "\"I know, I know, I'm hurrying. Would you quit pushing me already?\""
    show Saki impatient with fastblinds
    s "\"[playername]...I don't care what you say, just hurry up and make your breakfast already. I don't want to be late to class again!"
    story "Saki... I see you're just as much of a dictator as you've always been." 
    story "I think to myself as I step into the kitchen to prepare breakfast." 
    story "But then, as I begin my normal routine to make my breakfast..."
    story "AS SAKI ORDERED BY THE WAY!!"
    story "...a strange thought pops into my head..."
    nvl clear
    window hide fade

    hide Saki impatient with fastdissolve
    show Saki confused with fastdissolve
    s"\"Hmm? What's wrong [playername]\""
    player "\" Oh it's nothing. I just have a lot on my mind right now.\""
    hide Saki confused with fastblinds
    story "Yeah, there's no way I could tell her what I'm thinking about right now."
    story "I better listen to her and get started on breakfast now..."
    story "HOWEVER... I could try and see if I can convince her to make my breakfast for me."
    story "But if it doesn't work, I have to face the dragon's rage again."
    story "Brrrrr... I shiver just thinking about it."
    story "So now, I have to make a decision"
    nvl clear
    window hide

    stop music fadeout 1.0
    story "I..."
    nvl clear
    window hide

menu:
    "Listen to Saki, and make your own breakfast":
        jump breakfastheroscene

label breakfastheroscene:
    story "Yes, that's right what am i thinking?"
    story "The last time i suffered the dragon's rage i ended up in the hospital."
    story "A trip to the hospital...THAT I WILL HAVE TO PAY FOR...is not worth a free breakfast."
    nvl clear
    window hide
        
label secondheroscene:
    show livingroom with dissolve
    hide breakfast 
    play music "Carefree.mp3" 
    story "After having my breakfast, Saki walks over to the living room as i finish getting my stuff ready to leave."
    window hide dissolve
    show Saki sighing with fastblinds
    story "She sighs- as  impatient as ever, i see- and glances at her phone, worried that she'll be late as she always is"
    nvl clear
    window hide
        
    s"\"[playername]... are you ready to go yet? We're going to be late.\""
    player "\"Yeah i'm ready to go...Your Majesty\""
    hide Saki sighing with fastblinds
        
    story "Saki ignores my snide comment, as she opens the door and leaves my house."
    story "Seeing how i didn't want to delay Her Majesty any further. I pick up my things and walk towards the door."
    story "But, as i'm walking towards the door..."
    nvl clear
    window hide
    stop music fadeout 1.0
        
    show flashback hero
    with flash
    hide flashback hero
    with flash
        
    player"\"Huh?\""
    story "What was that just now? I could of sworn the door from my dream just flashed in front of my eyes..."
    story "I think to myself as i turn around and see nothing is there."
    nvl clear
    window hide
        
label herohousefront:
    show housefront with slowfade
    play music "Carefree.mp3" fadein 2.0
    story "After that strange flashback we walk outside to leave to school"
    story "I lock the door and grab my stuff and turn towards Saki"
    show Saki smiling with fastblinds
    s "\"Well that's it then right your ready to go?\""
    player"\"Yes, that's it let's go\""
            
            
    "Convince Saki to make your breakfast":
        jump breakfastvillainscene

label breakfastvillainscene:
    story "Hehehe...Yes that's right, she did hit me afterall."
    story "It's time i fought back, from all the times she's picked on me in the past."
    story "I am a guy, afterall; not a wuss. I am not going to let Saki torment me like this anymore."
    story "Besides, if I choose the correct words, I won't have to suffer the dragon's rage."
    nvl clear
    window hide
        
    play music "Feelin Good.mp3" fadein 1.0
    player"\"Hey, Saki... do you mind if I ask you something?\""
    show Saki confused with fastblinds
    s"\"Umm... sure, I guess? What is it?\""
    player"\"Yeah.. this is kinda embarassing. But could you make my breakfast for me? That way, I can get ready for class.\""

    stop music
    hide Saki confused with fastdissolve
    show Saki shocked with fastdissolve
    story "The moment I said this, i could feel the air around me grow significantly colder and sharper."
    story "It was as if time itself, had become shocked at what i had just said to Saki."
    story "...Which, by all accounts, was not a good sign."
    nvl clear
    window hide

    scene kitchen  # show the background
    show Saki pissed with fastdissolve  # show the sprite
    play music "Minima.mp3" fadein 3.0
    s"\"Ho-oh! What was that? Did i just hear you correctly? Did you just ask me to make your breakfast?"
    story  "Uh-oh, no doubt about it. I triggered it. It's..."
    stop music
    play sound "dragonroar.mp3"
    show dragonrage behind Saki with hpunch   # Show the dragon
    play music "Lusus Naturae.mp3" fadein 3.0
    story "THE DRAGON'S RAGE!!"
    hide dragonrage with dissolve
    show breakfast behind Saki with dissolve
 
    story "My heart starts to race, as Saki begins to walk towards me."
    story "Instinctively, my body backs up towards the wall, sensing the danger that is closing in on me with that innocent smile
    on her face"
    story "I swallow some saliva, as the fear mounts and i try and calm myself down."
    story "Ok, [playername], think! You have to calm her down! It's the only way your going to get out of this situation!"
    nvl clear
    window hide
        
    player "\"I-I'm sorry, Saki. Please understand, it's not like i asked you to be my slave or anything; I just thought that would make
    things easier and faster."
    s"\"Oh! So now your calling me your slave is that it?"
    player "\"No-no-no, I-I just thought-"
    story "As i try and calm her down, i don't know if it's from personal experience or not but my body already knows what's coming next."
    show dragonrage behind Saki with dissolve
    hide dragonrage with dissolve
    story "The dragon raises it's claw and..."
    stop music
    play sound "Super Punch MMA.mp3"
    show knockout
    $renpy.pause()
    story "I see nothing but darkness."
    nvl clear
    window hide
    jump evilhousefront

label evilhousefront:
    show housefront with slowfade
    play music "Carefree.mp3" fadein 2.0
    story "After Saki's punch in the face. I made my own breakfast afterwhich we walk outside to leave to school"
    story "I lock the door while rubbing my forehead from Saki's punch, grab my stuff and then turn towards Saki"
    show Saki smiling with fastblinds
    s "\"Well that's it then right your ready to go?\""
    player"\"Yes, that's it let's go\""

return

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Character Sprite Not Appearing In Scene

#10 Post by gas »

..and you cannot nest labels inside labels inside menus :).

Use Editra, it's better.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
amaturemanga
Regular
Posts: 97
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: Character Sprite Not Appearing In Scene

#11 Post by amaturemanga »

chocoberrie wrote:Again, your indentation is all over the place, I think that's why the sprite isn't appearing when you use the show statement.

Fix the indentation by changing the number of spaces in front of each line, as shown below.
nope now i'm getting an expected statement error on line 278

Code: Select all

"Convince Saki to make your breakfast":

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Character Sprite Not Appearing In Scene

#12 Post by gas »

amaturemanga wrote:
chocoberrie wrote:Again, your indentation is all over the place, I think that's why the sprite isn't appearing when you use the show statement.

Fix the indentation by changing the number of spaces in front of each line, as shown below.
nope now i'm getting an expected statement error on line 278

Code: Select all

"Convince Saki to make your breakfast":
it lack a
menu:

just before.

NO WAIT!

What you're doing is totally wrong from the beginning XD.
You're using LABELS inside menu voices.
Do somethin like instead:

Code: Select all

menu:
    "saki do bla bla bla":
        jump sakidothejob
    "saki I hate you!":
        jump killsaki

label sakidothejob:
    "Whatever you want for"
label killsaki:
    "This was annoying!!"
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
amaturemanga
Regular
Posts: 97
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: Character Sprite Not Appearing In Scene

#13 Post by amaturemanga »

ok so everything in the indentation is fixed but the sprite is still not appearing guess it's a unicode error?

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Character Sprite Not Appearing In Scene

#14 Post by gas »

Ok, wait a moment.

What you're doing is not only using bad indentation, but a wrong game structure.

you need to change everything this way...

Code: Select all

label start:
    #whatever you want for...
menu:
    "Listen to Saki, and make your own breakfast":
        jump breakfastheroscene
    "Convince Saki to make your breakfast":
        jump breakfastvillainscene

label breakfstheroscene:
    #whatever you want
label secondheroscene:
    #the event
label herohousefront:
    #the content of that scene and the return to end the game
label breakfastvillainscene:
    #bla bla bla
label evilhousefront:
    #thecontent of that scene and the return to end the game
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
amaturemanga
Regular
Posts: 97
Joined: Sun Mar 08, 2015 6:55 pm
Deviantart: amaturemanga
Skype: amature.manga
Contact:

Re: Character Sprite Not Appearing In Scene

#15 Post by amaturemanga »

gas wrote:Ok, wait a moment.

What you're doing is not only using bad indentation, but a wrong game structure.

you need to change everything this way...

Code: Select all

label start:
    #whatever you want for...
menu:
    "Listen to Saki, and make your own breakfast":
        jump breakfastheroscene
    "Convince Saki to make your breakfast":
        jump breakfastvillainscene

label breakfstheroscene:
    #whatever you want
label secondheroscene:
    #the event
label herohousefront:
    #the content of that scene and the return to end the game
label breakfastvillainscene:
    #bla bla bla
label evilhousefront:
    #thecontent of that scene and the return to end the game
ok structure is fixed but again sprite is not showing.

Post Reply

Who is online

Users browsing this forum: No registered users