Having problems

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
N9OGL
Newbie
Posts: 2
Joined: Mon Oct 12, 2009 6:32 pm
Projects: Lost Love
Location: Illinois
Contact:

Having problems

#1 Post by N9OGL »

I'm having problems, when I do text it works but when I put a background image in I get a error.
I'm just starting and trying to figure this program out.


Code: Select all

 
# You can place the script of your game in this file.

init:
    # Declare images below this line, using the image statement.
    # eg. image eileen happy = "eileen_happy.png"
    
     image bg maple = "maple.jpg"
     
    # Declare characters used by this game.
    
    $ k = Character ('Kenji', color="#c8ffc8")

    


# The game starts here.
label start:
    
    image bg maple
          
    k  "You've created a new Ren'Py game."

    k  "Once you add a story, pictures, and music, you can release it to the world!"

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


On line 11 of C:\Documents and Settings\Todd Daugherty\Desktop\REipy\renpy-6.9.3\Project\Unbound Decetive Agency/game/script.rpy: indentation mismatch.

Ren'Py Version: Ren'Py 6.9.3c

JQuartz
Eileen-Class Veteran
Posts: 1265
Joined: Fri Aug 31, 2007 7:02 am
Projects: 0 completed game. Still haven't made any meaningfully completed games...
Contact:

Re: Having problems

#2 Post by JQuartz »

N9OGL wrote:when I put a background image in I get a error.
Like the error says, identation mismatch:

Code: Select all

     image bg maple = "maple.jpg" #This line is a space more than the one below it
     

   
    $ k = Character ('Kenji', color="#c8ffc8")
It should have been:

Code: Select all

    image bg maple = "maple.jpg"
     
   
    $ k = Character ('Kenji', color="#c8ffc8")
Read this about indentation:http://www.renpy.org/wiki/renpy/doc/ref ... _Structure
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot