u/Scriptformers_Prime

Layered image variants
▲ 1 r/RenPy

Help with layered image variants

When I try to add the code for layered image variants, it always shows both the variant images and the regular images at the same time. I'm not sure what's going wrong.

layered image character:
  group body auto:
    attribute body0 default:
      "character_body_0"
      when not(angry or sad or happy)
  always when angry:
    "character_body_1"
  always when sad:
    "character_body_2"
  always when happy:
    "character_body_3"  

  group body variant pajamas auto

  group exp auto

  group gest auto
  always when angry:
    "character_gest_1"
  always when sad:
    "character_gest_2"
  always when happy:
    "character_gest_3"

  group gest variant pajamas auto

  
show character pajamas angry
# shows standard and variants of images for body and gest at the same time instead of just the images for the variants.
reddit.com
u/Scriptformers_Prime — 3 days ago
▲ 4 r/RenPy

Help using variants

I'm setting up a layered image for a character in my visual novel and am having trouble adding in a variant outfit (character in her pajamas).

The code looks something like this.

layeredimage character:
  group body auto:
     attribute base default:
        "character_body_base"
        when not (wry or annoyed or nervous or angry)
  always when wry or annoyed:
     "character_body_bladed"
  always when nervous or angry:
     "character_body_stiff"

  group body variant pajamas auto

show character pajamas angry

As you can see, I have some always/when statements in place to call different poses for the character's body based on their emote. I have variant images for each pose with the character in her pajamas.

But when I call for the variant of their body wearing their pajamas, it only gives me the base variant and not the "stiff" variant I want associated with the "angry" call.

I'm pretty new at Renpy and coding, so I'm not sure what I am doing wrong here. Thoughts?

reddit.com
u/Scriptformers_Prime — 5 days ago
▲ 5 r/RenPy

Another layered image question

I'm setting up the layered sprites for the characters in my visual novel with three groups: the body, the facial expressions, and the gestures made with their arms.

But I want to only call the expressions in my script, having certain bodies and gestures tied to certain expressions (because I was previously using individual full-body sprites for each expression and I don't want to have to go back and change each call to include the now separate body and gesture files for each expression).

So, I used some "always when" statements to tie certain gestures and bodies to certain expressions. Here's an example:

layeredimage character:
    group body:
        attribute base default:
            "character_body_base"
    group exp:
        attribute smiling default:
            "character_exp_smiling"
        attribute uneasy:
            "character_exp_uneasy"
        attribute surprised:
            "character_exp_surprised"
        attribute suspicious:
            "character_exp_suspicious"
    group gest:
        attribute neutral default:
            "character_gest_neutral"
        attribute tense:
            "character_gest_tense"

    always when uneasy or surprised or suspicious:
        "character_gest_tense"

It seemed to work fine, but now when I call the expressions, renpy includes the default bodies and gestures in addition to the bodies and gestures I tied to expression I called.

It looks something like this:

She's not supposed to have four arms btw.

When I type:

character uneasy

It calls the "uneasy" expression and the "tense" gesture together like I asked, but it also makes the "neutral" gesture show up as well.

How do I make it so the game shows the defaults only when I call the expressions that don't have certain gestures or expressions tied to them.

reddit.com
u/Scriptformers_Prime — 8 days ago

Help with artistic question.

I'm a beginner at tarot readings and asked about an art project I'm working on. Specifically, I was conflicted on whether I should make a change to what I've already done with a new method I've learned or stay with the method I've already been using. I drew for a Celtic cross spread and got the following result.

The Cross:

Center: Hanged Man (inverted)

Cross: Ten of Pentacles (top facing right)

Bottom: Six of Swords (inverted)

Left: Knight of Wands

Top: Star

Right: Sun (inverted)

The Staff:

Bottom: Five of Wands

2nd from Bottom: Five of Cups (inverted)

3rd from Bottom: Seven of Swords (inverted)

Top: The World (inverted)

I'm thinking that the cards are telling me to stay the course, but I'm not certain. What say you?

reddit.com
u/Scriptformers_Prime — 13 days ago
▲ 1 r/RenPy

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?

reddit.com
u/Scriptformers_Prime — 21 days ago