Help with images!!

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
Corvid
Newbie
Posts: 4
Joined: Wed Aug 27, 2014 11:19 pm
Projects: Brighteyes - A short project to help me get acquainted with Ren'Py
Location: California
Contact:

Help with images!!

#1 Post by Corvid »

So I've tried about 100 different ways to add an image (Ok, exaggerating), and nothing seems to work.

Code: Select all

init:
    image black = "#000000"  
    image Mika 1 = "Images/Game sprite - Mika 1.png"
    image Mika 2 = "Images/Game sprite - Mika 2.png"
    image Mika 3 = "Images/Game sprite - Mika 3.png"
    image title = "Bright Eyes.png"
    
define a = Character(_('player'), color="#FFFFFF")
define b = Character(_('  '), color="#FFFFFF")
define c = Character(_('???'), color="#FFFFFF")
define d = Character(_('  '), color="#FFFFFF")


show title
label start:
    show Mika 2
   
    a "My head..."
    
    a "ugh..."
        
Is there something I'm missing, or am I doing it wrong, or am I just stupid and missing something really obvious? Thanks!

Nova Alamak
Regular
Posts: 71
Joined: Sun Jun 08, 2014 1:45 pm
Contact:

Re: Help with images!!

#2 Post by Nova Alamak »

Is it showing an error or is the image just not appearing? Also it might be the spaces in your filenames, but I could be wrong about that.

User avatar
Corvid
Newbie
Posts: 4
Joined: Wed Aug 27, 2014 11:19 pm
Projects: Brighteyes - A short project to help me get acquainted with Ren'Py
Location: California
Contact:

Re: Help with images!!

#3 Post by Corvid »

It's showing this error

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 19, in script
    a "My head..."
IOError: Couldn't find file 'Images/Game sprite - Mika 2.png'.
I didn't think about the spaces, I'll try saving them as something else.

EDIT:: It was the spaces, thank you! I feel awfully dumb now, though, ahah. :lol:

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot]