I have a question...how do add a tint on a live composite

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
BurningTamashi
Newbie
Posts: 6
Joined: Sat Jun 23, 2012 2:13 pm
Contact:

I have a question...how do add a tint on a live composite

#1 Post by BurningTamashi » Tue Jan 09, 2018 3:42 pm

Trying to add a tint on a live composite. In order to make the sprite have the same lighting as the background. but it keeps tell me "IOError: Couldn't find file 'sherly big confused'."

Code: Select all

    image sherly big confused = LiveComposite(
        (881, 1875),
        (0, 0), "images/characters/SHERLY-SPRITES/BIG_SHERLY/SHERLY_CASUAL_BASE_POSE1.png",
        (0, 0), "sherly big eyes 2",
        (0, 0), "images/characters/SHERLY-SPRITES/BIG_SHERLY/SHERLY_BROW_5.png",
        (0, 0), WhileSpeaking("Sherly", "sherly big mouth 2", "images/characters/SHERLY-SPRITES/BIG_SHERLY/SHERLY_MOUTH_02.png"),
        )
    
    image sherly sunset big confused = im.MatrixColor("sherly big confused", im.matrix.tint(0.9, 0.5, 0.5))
    

philat
Eileen-Class Veteran
Posts: 1334
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: I have a question...how do add a tint on a live composite

#2 Post by philat » Thu Jan 11, 2018 3:30 am

You can't. Image manipulators only take images, not general displayables. Possible workaround: viewtopic.php?p=442479

Post Reply

Who is online

Users browsing this forum: Saltome, xplosion