Page 1 of 1

Help with images!!

Posted: Mon Sep 08, 2014 5:30 pm
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!

Re: Help with images!!

Posted: Mon Sep 08, 2014 6:58 pm
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.

Re: Help with images!!

Posted: Mon Sep 08, 2014 7:04 pm
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: