My first time using ren'py I had problems making a new script. I followed the quickstart guide http://www.renpy.org/doc/html/quickstart.html
but once I had to start adding pictures, I got an error message claiming that it couldn't find the pictures. I re-installed ren'py, having heard it would help by reading a forum post (I don't remember where). I started over, naming the game "My Question". I received the same error message, and after creating a new folder and copying the images to it (my_question/game) and paying extra attention to the spacing, I was confused when neither the error nor the pictures showed up. It just continued without them. I re-read and thought that I should have implemented an init block, but the guide did not specify the priority number I should have used, and never showed a picture of it in its examples, so I was confused. When I tried to enter one, I received this error:
Parsing the script failed.
File "game/script.rpy", line 1
: init statement expects a non-empty block.
(red arrow pointing left)
This is what my code looked like:
Code: Select all
image bg meadow = "meadow.jpg"
image bg uni = "uni.jpg"
image sylvie smile = "sylvie_smile.png"
image sylvie surprised = "sylvie_surprised.png"
define s = Character('Sylvie', color="#c8ffc8")
define m = Character('Me', color="#c8c8ff")
"I'll ask her..."
m "Um... will you..."
m "Will you be my artist for a visual novel?"
"She is shocked, and then..."
s "Sure, but what is a \"visual novel?\"""
Whenever I change one thing, another error pops up. I think this all started the very first time I tried to add pictures, when I got an error that my images were not loadable while doing a check script after ren'py couldn't find the images. They're all labeled correctly, I cut and pasted from the guide. As this is my first or second time coding, I have no idea what I'm doing wrong. Help would be much appreciated. I just want to move on to the next step.