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

Unable to show Image on Screen

#1 Post by KnuffelBeestje »

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: 882
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-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: Unable to show Image on Screen

#2 Post by Per K Grok »

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.

Yeto
Newbie
Posts: 18
Joined: Sun Sep 04, 2011 5:11 am
Contact:

Re: Unable to show Image on Screen

#3 Post by Yeto »

Code: Select all

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

Post Reply

Who is online

Users browsing this forum: No registered users