Unable to show Image on Screen

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
KnuffelBeestje
Newbie
Posts: 8
Joined: Wed Nov 13, 2019 9:44 am
Contact:

Unable to show Image on Screen

#1 Post by KnuffelBeestje » Mon Dec 02, 2019 4:41 pm

Hello,

I tried to show an image on a screen that I made but it gave the following error:

Code: Select all

File "game/screens-custom.rpy", line 8: u'show' is not a keyword argument or valid child for the screen statement.
    show pauseborderimage
My full code currently looks like this:

Code: Select all

##Image Defining
image pauseborderimage = "pausefiles/pause-border.png"


screen pause_menu:
    tag menu

    show pauseborderimage
    vbox:
        textbutton _("Test Button") action Return()
I'm just unable to get an image shown on a screen for some reason and can't find what I'm doing wrong :(


PLEASE NOTE: I'm a complete beginner to Ren'Py aswell as Python.

Best Regards,
KnuffelBeestje

User avatar
Per K Grok
Miko-Class Veteran
Posts: 674
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1
Projects: Defenders of Adacan Part 2
itch: per-k-grok
Location: Sverige
Contact:

Re: Unable to show Image on Screen

#2 Post by Per K Grok » Mon Dec 02, 2019 4:47 pm

KnuffelBeestje wrote:
Mon Dec 02, 2019 4:41 pm
Hello,

I tried to show an image on a screen that I made but it gave the following error:

Code: Select all

File "game/screens-custom.rpy", line 8: u'show' is not a keyword argument or valid child for the screen statement.
    show pauseborderimage
My full code currently looks like this:

Code: Select all

##Image Defining
image pauseborderimage = "pausefiles/pause-border.png"


screen pause_menu:
    tag menu

    show pauseborderimage
    vbox:
        textbutton _("Test Button") action Return()
I'm just unable to get an image shown on a screen for some reason and can't find what I'm doing wrong :(


PLEASE NOTE: I'm a complete beginner to Ren'Py aswell as Python.

Best Regards,
KnuffelBeestje
In a screen you don't use show, you use add.

User avatar
Yeto
Newbie
Posts: 14
Joined: Sun Sep 04, 2011 5:11 am
Contact:

Re: Unable to show Image on Screen

#3 Post by Yeto » Tue Dec 03, 2019 12:18 pm

Code: Select all

screen pause_menu:
    imagemap:
        ground 'pausefiles/pause-border.png'
should work!

Post Reply

Who is online

Users browsing this forum: Bing [Bot]