ConditionSwitch without image can work?

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
johandark
Veteran
Posts: 355
Joined: Sat Apr 30, 2016 11:04 am
Completed: Wild Guards, In Dreams
Projects: Pact with a witch
Deviantart: johandarkweb
Location: Barcelona
Contact:

ConditionSwitch without image can work?

#1 Post by johandark »

I have this:

Code: Select all

#N body

    contains: #N body
        
        "night04_pedrera_blowjob_N_body_superdark"
        
        night04_pedrera_blowjob_kiss_005_006_N_position
            
#N mouth

    contains:
        "night04_pedrera_blowjob_N_mouth_sadx2_Blow_superdark"
        night04_pedrera_blowjob_kiss_005_006_N_position
            
#N blush

    contains:
        "night04_pedrera_blowjob_N_blush_03_superdark"
        night04_pedrera_blowjob_kiss_005_006_N_position
            
#N eyes
            
    contains:
        "night04_pedrera_blowjob_N_eyes_front_05_superdark"
        night04_pedrera_blowjob_kiss_005_006_N_position
            
#N eyebrows
            
    contains:
        "night04_pedrera_blowjob_N_eyebrows_surprise_superdark"
        night04_pedrera_blowjob_kiss_005_006_N_position
            
#N glasses

    contains:
        "night04_pedrera_blowjob_N_glasses_superdark"
        night04_pedrera_blowjob_kiss_005_006_N_position
These are different parts from a single body that moves in same direction but change depending on the mood of the character.

They have now two movements:

transform night04_pedrera_blowjob_kiss_005_N_position
transform night04_pedrera_blowjob_kiss_006_N_position

Code: Select all

#Transform N_Body

transform night04_pedrera_blowjob_kiss_005_N_position:
    
    xanchor 0.45 yanchor -0.2 rotate 0 alpha 1.0

    #alpha 0.5
    
    xpos 0.8 ypos -1.0 rotate 5 #Pectoral Pose
    easeout_quad 5.0 xpos 0.82 ypos -0.62 rotate 0 #Beginning Abdominals
    easeout_quad 5.0 xpos 0.52 ypos -0.2 rotate 15# Belly Button
    easeout_quad 5.0 xpos 0.25 ypos -0.045 rotate -8 #Touching the topo
    easeout_quad 10.0 xpos 1.0 ypos 1.0 rotate -25 #Separate from rings.
    
    block:
        easeout_quad 3.0 xpos 0.95 ypos 1.05 rotate -20 #In front of balls.
        easein_quad 3.0 xpos 1.13 ypos 1.025 rotate -30 #Deepballs
        easeout_quad 3.0 xpos 1.0 ypos 1.0 rotate -25 #Separate from rings.
        repeat
        
transform night04_pedrera_blowjob_kiss_006_N_position:
    
    xanchor 0.45 yanchor -0.2 rotate 0 alpha 1.0

    #alpha 0.5
    
    #xpos 1.13 ypos 1.025 rotate -30 #Deepballs
    
    xpos 0.95 ypos 1.05 rotate -20 #In front of ring.
So I want to use a "ConditionSwitch" for them. But just for "Conditional" and "Position". Image I would like to use the same used in contain.

This works:

Code: Select all

transform night04_pedrera_blowjob_kiss_005_006_N_position:

        ConditionSwitch(night04_pedrera_blowjob_pov_005_Con_Body_LickEggs, At("night04_pedrera_blowjob_N_body_superdark", night04_pedrera_blowjob_kiss_005_N_position),
                                    night04_pedrera_blowjob_pov_006_Con_Body_LickBelowDick, At("night04_pedrera_blowjob_N_body_superdark", night04_pedrera_blowjob_kiss_006_N_position),
                                    "True", Null())
This doesn´t work:

Code: Select all

transform night04_pedrera_blowjob_kiss_005_006_N_position:

        ConditionSwitch(night04_pedrera_blowjob_pov_005_Con_Body_LickEggs, At night04_pedrera_blowjob_kiss_005_N_position(),
                                    night04_pedrera_blowjob_pov_006_Con_Body_LickBelowDick, At night04_pedrera_blowjob_kiss_006_N_position(),
                                    "True", Null())
My question is... Is it possible to use ConditionSwitch just only for images?

Thanks!
Image

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]