Character creation side image issue

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
Tessiellation
Regular
Posts: 48
Joined: Sat Oct 07, 2017 11:21 am
Contact:

Character creation side image issue

#1 Post by Tessiellation »

I've managed via Baiyu's tutorial to make a character creator, sort of.

My issue is that, once I've made the character, it doesn't save the creation to the side image.

https://puu.sh/BdtOd/83976e57ae.png
https://puu.sh/BdtOC/7e97627a07.png

I'm not sure what codes you guys would need...

Here's my definition of the character at least:

Code: Select all

image side august = LayeredImageProxy("august", Transform(crop=(0, 0, 497, 400), zoom=0.7, xoffset=-50))
#end sideimage

#begin sideimage_name
define au = Character("Augustina", image="august")
I'm planning to change out the character as soon as this is solved :S I'm just desperate to get something to work right now.

User avatar
dGameBoy101b
Regular
Posts: 31
Joined: Sun Aug 12, 2018 8:32 am
itch: dgameboy101b
Contact:

Re: Character creation side image issue

#2 Post by dGameBoy101b »

Have you defined the original layered image before proxying it for the side image? Also, you should look at how you are changing the layers of the original image to make sure you don't have conflicting tags. You can remove tags by using the following.

Code: Select all

show au tag #au_tags = ["tag"]
show au -tag tag1 tag2 #au_tags = ["tag1","tag2"]

Tessiellation
Regular
Posts: 48
Joined: Sat Oct 07, 2017 11:21 am
Contact:

Re: Character creation side image issue

#3 Post by Tessiellation »

Hello, sorry to ask, but where exactly do I put this code? :) Also, do I replace the "tag" with f.x "hair"?

But my layered images shouldn't have have conflicting tags.

User avatar
dGameBoy101b
Regular
Posts: 31
Joined: Sun Aug 12, 2018 8:32 am
itch: dgameboy101b
Contact:

Re: Character creation side image issue

#4 Post by dGameBoy101b »

I was just demonstrating how to remove tags. Since the side image is a proxy (copy) of an image, could you also provide the definition of the layered image the side image is proxying?

Tessiellation
Regular
Posts: 48
Joined: Sat Oct 07, 2017 11:21 am
Contact:

Re: Character creation side image issue

#5 Post by Tessiellation »

Yes, of course :)

Let's see. Ok, so this is the whole definitions file

Code: Select all

# Declare images used by this game. We can use the new LayeredImage
# function to create our sprites.

#begin basic_layeredimage
init -1:

    $ evil = False

layeredimage augustina:

    always:
        "augustina_base"

    group outfit:

        attribute dress:
            "augustina_outfit_dress"

        attribute jeans:
            "augustina_outfit_jeans"

    group eyes:

        attribute open default:
            "augustina_eyes_open"
            #default True

        attribute wink:
            "augustina_eyes_wink"

    group eyebrows:

        attribute normal default:
            "augustina_eyebrows_normal"

        attribute oneup:
            "augustina_eyebrows_oneup"

    group mouth:

        #pos (100, 100)

        attribute smile default:
            "augustina_mouth_smile"

        attribute happy:
            "augustina_mouth_happy"

    if evil:
        "augustina_glasses_evil"

    else:
        "augustina_glasses"
#end basic_layeredimage

#begin auto_layeredimage
layeredimage augustina:

    always:
        "augustina_base"

    group outfit:
        attribute dress
        attribute jeans

    group eyes:
        attribute open default
        attribute wink

    group eyebrows:
        attribute normal default
        attribute oneup

    group mouth:
        #pos (100, 100)
        attribute smile default
        attribute happy

    if evil:
        "augustina_glasses_evil"
    else:
        "augustina_glasses"
#end auto_layeredimage

#begin auto_shortli
layeredimage augustina:

    always "augustina_base"

    group outfit auto

    group eyes auto:
        attribute open default

    group eyebrows auto:
        attribute normal default

    group mouth auto:
        #pos (100, 100)
        attribute smile default

    if evil:
        "augustina_glasses_evil"
    else:
        "augustina_glasses"
#end auto_shortli

#begin li_animated
layeredimage august:

    always "august_base"

    group outfit auto

    group eyes auto:
        attribute open default

        attribute blinking:
            "blinking"

    group eyebrows auto:
        attribute normal default

    group mouth auto:
        attribute smile default

    group glasses auto

    group emotion auto
#end li_animated

#begin animations
image blinking:

    "august_eyes_open"
    choice:
        4.5
    choice:
        3.5
    choice:
        1.5
    "august_eyes_half"
    .1
    "august_eyes_closeddown"
    .1
    "august_eyes_half"
    .1
    repeat

#end animations

#begin li_doll
layeredimage doll:

    always "doll_base"

    # possible outfits

    if outfit == 1:

        "doll_outfit_swimsuit"

    elif outfit == 2:

        "doll_outfit_jeans"

    elif outfit == 3:

        "doll_outfit_dress"

    group eyes auto:
        attribute open default

    group eyebrows auto:
        attribute normal default

    group mouth auto:
        attribute smile default

    if glasses == 1:

        "doll_glasses_purple"

    elif glasses == 2:

        "doll_glasses_pink"

    elif glasses == 3:

        "doll_glasses_blue"

#end li_doll

#begin sideimage
image side august = LayeredImageProxy("august", Transform(crop=(0, 0, 497, 400), zoom=0.7, xoffset=-50))
#end sideimage

#begin sideimage_name
define au = Character("Augustina", image="august")
#end sideimage_name

I've tried replacing LayeredImageproxy with "Doll" but it does nothing >.< I really lost at how i get the side image to change right now.

Tessiellation
Regular
Posts: 48
Joined: Sat Oct 07, 2017 11:21 am
Contact:

Re: Character creation side image issue

#6 Post by Tessiellation »

Wait, I just changed it to doll and it worked this time O.O I'm baffled.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Majestic-12 [Bot], Ocelot