Code: Select all
layeredimage cSebastian:
always:
"characterLayerSprites/sebastian/body.png"
group eyes:
attribute cry:
"characterLayerSprites/sebastian/eyesCry.png"
attribute normal default:
"characterLayerSprites/sebastian/eyesNeutral.png"
group mouth:
attribute frown:
"characterLayerSprites/mouth/frown.png"
attribute neutral default:
"characterLayerSprites/mouth/neutral.png"
Code: Select all
show cSebastian:
alpha 0.5
I've found https://www.renpy.org/doc/html/displaya ... rm#Flatten, but how do I use it? I can't find any examples.
Some things I've tried:
A python function
Code: Select all
init python:
def flatIt(chr):
return renpy.display.layout.Flatten(chr)
$ newVar = flatIt(cSebastian)
show newVar
Code: Select all
transform flat(chr):
Flatten(chr)
show cSebastian at flat(testSebastian)
Code: Select all
show renpy.display.layout.Flatten(cSebastian)
I've also considered adding the sprite to a new custom layer, but I couldn't figure out how to change the alpha of a layer.
Could someone show me a working example of how to get a LayerImage Sprite to be partially transparent as a whole image? I don't mind if it's using a different method than flatten.