[SOLVED] Displayables in screens: not defined

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
Milkymalk
Miko-Class Veteran
Posts: 753
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

[SOLVED] Displayables in screens: not defined

#1 Post by Milkymalk »

Why does this result in NameError: name 'arrow' is not defined? I'm sorry if it is obvious, but I'm feeling incredibly stupid right now...

Code: Select all

init:
    image arrow = 'gfx/arrow_white.png'

screen showarrow:
    add arrow
    
label start:
    show screen showarrow
    "..."
Last edited by Milkymalk on Mon Jul 28, 2014 5:42 pm, edited 1 time in total.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Displayables in screens: not defined

#2 Post by xela »

Use string ("arrow"), arrow assumes a variable.
Like what we're doing? Support us at:
Image

User avatar
Milkymalk
Miko-Class Veteran
Posts: 753
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

Re: Displayables in screens: not defined

#3 Post by Milkymalk »

Ah, I was thinking it would look for a file named "arrow" then... thanks.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

Post Reply

Who is online

Users browsing this forum: No registered users