Badge Image not found error

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
User avatar
neometalero
Regular
Posts: 107
Joined: Sun Oct 23, 2016 3:51 am
Deviantart: neometalero
Contact:

Badge Image not found error

#1 Post by neometalero » Thu Aug 15, 2019 1:56 pm

Im trying to put badge images on my menu options. Like in this example.
Image
I edited the screens file to generate my new creen

Code: Select all

screen pic_choice(items):
    style_prefix "pic_choice"

    vbox:
        for i in items:

            $ badge = i.kwargs.get("badge", None)

            textbutton i.caption:
                action i.action

                if badge:
                    foreground Transform("badge " + badge, xpos=30, yalign=1.0)
and then in my script the new menu

Code: Select all

label testMenuconImagenes:

    menu (screen="pic_choice"):
        "Opcion 01" (badge="BadgeTest01"):
            jump oficinaReclut
        "Opcion 02" (badge="BadgeTest02"):
            jump oficinaReclut
        "Opcion 03" (badge="BadgeTest03"):
            jump oficinaReclut
        "Opcion 04" (badge="BadgeTest04"):
            jump oficinaReclut
I defined the images for the badges like this

Code: Select all

#Badges---------------------------------------------------------

image BadgeTest01 = "badge/BadgeTest01.png"
image BadgeTest02 = "badge/BadgeTest02.png"
image BadgeTest03 = "badge/BadgeTest03.png"
image BadgeTest04 = "badge/BadgeTest04.png"
but for some reason the engine don't recognize them

Image

any idea about whats going on? Tks
Working on Attack Helicopter Dating Simulator

Image

Post Reply

Who is online

Users browsing this forum: Google [Bot]