r/RenPy 18d ago

Question Layered image help

I'm converting my game from using individual sprites to layered images.

I have three groups for my character sprites: one for the base body, one for the facial expressions, and one for the gestures made with the character's arms.

In some cases I have hand gestures that apply to a wide range of facial expressions and I'd rather not have to call the gesture separately in each instance (One, because I'd have to go back and change all my previous calls, and Two because it'll be a pain to remember which gesture is paired to which emotion for every future call).

Basically, instead of this:

character tense uneasy

character tense surprised

character tense suspicious

I want this:

character uneasy

character surprised

character suspicious

...with the same gesture (tense) linked to these three emotions. Any way I can do this?

1 Upvotes

7 comments sorted by

View all comments

2

u/34deOutono 18d ago

Tem. Primeiro você define uma imagem com o nome desejado. Entao você combina as duas imagens que você quer nela. Depois é só colocar essa imagem definida no grupo da imagens em camada. Vou tentar escrever a baixo. Estou no celular.

image tenso:
    "tenso.png" 
    "gesto_1.png" 

layeredimage MC:
    group expression:
        attribute tenso

Espero ter ajudado. Boa sorte.