Image not defined on a screen [solved 'cause i'm silly]

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
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Image not defined on a screen [solved 'cause i'm silly]

#1 Post by gas »

Defined an image in the script, correctly shown in the game using SHOW statement.
Using Add in a screen (splashscreen context) return undefined image error.
The code is correct, no need to paste it.
Something like:

Code: Select all

image her = ConditionSwitch(..)
screen myscreen():
    add her

label splashscreen:
    show screen myscreen
I'm quite sure to have used defined images in the past for the Add statement.
It's an init issue?
Last edited by gas on Sat Apr 07, 2018 2:40 pm, edited 1 time in total.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
mitoky
Veteran
Posts: 316
Joined: Sat Feb 07, 2015 9:12 pm
Projects: The Purring Demon's Love, circus eterie
Contact:

Re: Image not defined on a screen

#2 Post by mitoky »

Try writing it as:

Code: Select all

add "her"

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Image not defined on a screen

#3 Post by gas »

mitoky wrote: Wed Apr 04, 2018 4:14 pm Try writing it as:

Code: Select all

add "her"
O fcourse you were correct and of course i had to stay focused some more :-) thank you
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

Post Reply

Who is online

Users browsing this forum: Bing [Bot]