Character Customization Buttons Not Working

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

Character Customization Buttons Not Working

#1 Post by amaturemanga » Wed Apr 15, 2015 4:53 pm

hey everyone i just followed this tutorial: http://lemmasoft.renai.us/forums/viewto ... 99#p367299 and added some character customization to my visual novel but the buttons arent working im not sure what i did wrong because even when i click the buttons im not getting any errors or anything nothings happening. I seperated my code into seperate files so its easier to organize:

cc_screen

Code: Select all

define character_img = "base.png"
   

screen character_customization_screen:
    modal True
    tag menu

    # The main menu buttons.
    frame:
        xalign .7
        yalign .5

        has vbox
        
        hbox:
            vbox:
                $ ui.text("Hair styles", size= 23,color="#496682")
                textbutton _("hairstyle1") action [ SetVariable("hairstyle1","hair1")]
                textbutton _("hairstyle2") action [ SetVariable("hairstyle2", "hair2")]
                textbutton _("hairstyle3") action [ SetVariable( "hairstyle3","hair3")]
                textbutton _("hairstyle4") action [ SetVariable( "hairstyle4","hair4")]
                textbutton _("hairstyle5") action [ SetVariable( "hairstyle5","hair5")]
                textbutton _("hairstyle6") action [ SetVariable( "hairstyle6","hair6")]
                
            
                   
           
        
    add character_img:
        pos (-60,81)
cc_settings

Code: Select all

init:
    ## CHARACTER APPEARANCE ##
    $ body = "base"
    $ hairstyle1 = "hair1"
    $ hairstyle2 = "hair2"
    $ hairstyle3 = "hair3"
    $ hairstyle4 = "hair4"
    $ hairstyle5 = "hair5"
    $ hairstyle6 = "hair6"
script

Code: Select all

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

# 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)

# Declare characters used by this game.
define story = Character(None, kind = nvl, ctc = None)

define player = Character("[playername]")

# 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   Art by: SilverKazeNinja" with dissolve ## fix
    $ renpy.pause(2)
    play music "Metaphysik.mp3"
    hide text with dissolve
    $renpy.pause(2)
    return ## fix
    
label start:
    show screen character_customization_screen
    $renpy.pause()
    
    $ story = Character(None, ctc="ctc_animation", ctc_position="fixed", kind=nvl)
    stop music
    with dissolve
    
    window show fade
    $ playername = renpy.input("Please enter your character's name below.")
    $ playername = playername.strip()
    window hide fade  
    
window show fade 
story "I am walking down a dark corridor. It is a corridor i am very familiar with."
story "As this is a dream i have almost every night."
story "I can feel the darkness telling every fiber in my body to turn back,"
story "but i know... i know i have to press forward as i reach the familiar corner..."
nvl clear 
window hide fade

window show fade
story "I turn the corner and find myself in a familiar dark abandoned room"
nvl clear
window hide fade

 
return
    

Post Reply

Who is online

Users browsing this forum: Bing [Bot]