Page 1 of 1

Basic Questions...

Posted: Thu Jun 10, 2010 12:26 am
by icerain
Hi. I'm not very skilled in game making. Please help me... -_-

1. How do you create a title for a game? I don't mean when you type in your project name. How do you change it from "A Ren'Py Game" to a title you want?

2. How do you implement a background picture for the title image?

3. (most n00bish question) I don't get it. When you create a new project, the script looks different from the question. The pictures are put somewhere else, at the top line. Please give me an example of how a script should really look.

4. How do you add extras as an option to select when opening the game?

Re: Basic Questions...

Posted: Thu Jun 10, 2010 12:40 am
by MaiMai
All right, this might take a while to explain since these are bare basics and there's... a lot of them *stretches fingers*

First of all, when you open up your script in whatever script editor you're using, there is a tab called options.rpy. This is where you have the default menu settings which you can edit accordingly. I'll answer the questions I know.

1. To create a title for your game find this

Code: Select all

 ## This controls the title of the window, when Ren'Py is
    ## running in a window.

    config.window_title = u"Name of Your Game Here" 
2. To put a background image for your menu find this

Code: Select all

 ## The background of the main menu. This can be a color
        ## beginning with '#', or an image filename. The latter
        ## should take up the full height and width of the screen.
        mm_root = "menu.jpg", 
the part that says .jpg is basically the picture of the BG for the menu you want to insert. The name can be anything as long as the picture is in your directory and you label it with the same name in the code.

3. What you can do to make your script look like The Question is good ol' copy and paste and post it into your script.rpy. Just replace everything in that script with your stuff! Make sure to indent each line or else you'll have line errors and those are very annoying.

Re: Basic Questions...

Posted: Fri Jun 11, 2010 2:04 pm
by KimiYoriBaka
in answer to question 4:

find this line in the options.rpy

Code: Select all

config.main_menu = [
        (u"Start Game", "start", "True"),
        (u"Continue Game", _intra_jumps("load_screen", "main_game_transition"), "True"),
        (u"Preferences", _intra_jumps("preferences_screen", "main_game_transition"), "True"),
        (u"Quit", ui.jumps("_quit"), "True")
        ]
this is the line telling the game what options the menu should have. I'm not sure how _intra_jumps works, but the values in each set of parentheses are telling what the menu button should say, what label to go to, and if the button should be selectable.

to add a button for "extras", add

Code: Select all

(u"Extras", "extras", "True"),
between whichever you ones want the extra button to go between, the add a label called "extras" somewhere in your code that brings up your extras menu. If you don't want the extras button to be selectable when nothing has been unlocked, replace "true" with a persistent variable that has a default value of false and is set true whenever something is unlocked.

good luck and I hope I explained it well enough.

Re: Basic Questions...

Posted: Fri Jun 11, 2010 7:33 pm
by icerain
There is a tab in the script editor???? Can you please give me a picture? T_T

Re: Basic Questions...

Posted: Fri Jun 11, 2010 8:06 pm
by alberte
If you're talking about options.rpy
file>open>options.rpy

Re: Basic Questions...

Posted: Fri Jun 11, 2010 8:07 pm
by MaiMai
Which script editor are you using? I'm surprised you don't even see it.

I'm using Scite here in this screen shot, but if you're sing Jedit it should look about the same.

Re: Basic Questions...

Posted: Fri Jun 11, 2010 8:34 pm
by icerain
Sorry, got it. ^^