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.
When I use the "with fade" command how do I extend the duration of the fade? I searched the forum for fade but did not see anything.
As I was searching for the fade answer I noticed something about nvl_mode? Anyone got a quick explanation for what this is? At the beginning of my game I have about 10 lines of text using the "centered" command, does nvl_mode work better than the centered command? Also can I make the text fade in a bit more dramatically for these few lines?
Yep, but I still haven't figured out how to ask Eileen for date in the new one.YuMMz wrote:By the way, the new Ren'Py demo is SO MUCH BETTER than the old one .
From manual:YuMMz wrote:When I use the "with fade" command how do I extend the duration of the fade? I searched the forum for fade but did not see anything.
Code: Select all
init: $ fade = Fade(.5, 0, .5)
out_time - The amount of time that will be spent fading from the old scene to the solid color. A float, given as seconds.
hold_time - The amount of time that will be spent displaying the solid color. A float, given as seconds.
in_time - The amount of time that will be spent fading from the solid color to the new scene. A float, given as seconds.
So all you have to do is copy the code above, rename it from fade to something else, change the values to your liking and use it.
Code: Select all
with Fade(.5, 0, .5)
NVL mode is meant to display a larger text window and each line of text will stay after you click, until you clear it. But NVL mode is a bit of a pain to configure the first time, so if it's for a single use, it might be annoying to do this way ^^;
Is it better to create a seperate script file for the game's script? I loaded the magical boutique open source just to see what it looked like and noticed that the script was in a different file. Is this how most of the games are? Or should I just put 50k words into the script file?
Just know that if you use multiple files, in the end they'll all be concatenated in one big script when running the game anyway... so it's really just for ease of scripting
For a straight, no extra programming frills, linear with looping branches story, I prefer a single file, or at most two. The most scripts I've ever used for a single game is eight, but I think that's a little excessive even for me.
-options for all the declarations and customizations
-engine for all the calls and loops for the most interactive portions (so I do not need to rewrite dialogue everytime a certain situation occurs)
-script which is pretty much linear which is the bulk of the story, including a few branches and the few endings I have
Surprisingly, they are about the same length, due to things getting progressively more complex.
If I want to test the engine quickly, I just set some values, then have a shortcut go down to a label in the script that invokes the engine.
1. When changing the font for italics. I looked at the Ren'Py cookbook and it said to use the config.font_replacement_map command to change the font for italics. My question is which file do I put this in? Do I put it in the script.rpy or options.rpy or something else? Should I not put it first in the list? Sorry if this is a dumb question .
2. Regarding using the centered command to display text. Is there a way to make the actual text fade in and out. For example at the beginning of the game there are about 10 lines of text that come on and off the screen. I think it would look alot better if the text faded in and out instead of just popping on the screen. This is how I currently have it.
Code: Select all
show black centered "I want this text to be dramatic." centered "I wish it did not just pop on the screen." centered "If I could make it fade in and out dramatically that would be sweet!"
Code: Select all
show black centered "I want this text to be dramatic." with dissolve with dissolve centered "I wish it did not just pop on the screen." with dissolve with dissolve centered "If I could make it fade in and out dramatically that would be sweet!" with dissolve with dissolve
I have to create seperate script files for each day of my game, otherwise there is no way I can possibly work on it efficiently. So I am wondering if someone can give me a quick and dirty explanation of how to do this. I tried to do the following:
1. I created a new file and saved it as oct30.rpy
2. typed "init python:" on line one and then typed "label oct30:" on line 3.
3. I then put "call oct30" at the appropriate location in script.rpy.
4. I then put "return" at the end of oct30.rpy
Now when I try to run the game I get errors. It tells me the following:
"I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
On line 1 of C:\Documents and Settings\mjohnson\Desktop\My Stuff\flash stuff\my games\Dating Simulator\System\Ren'Py\renpy-6.3.0-full\renpy-6.3.0\datingsim/game/oct30.rpy: python block expects a non-empty block.
On line 545 of C:\Documents and Settings\mjohnson\Desktop\My Stuff\flash stuff\my games\Dating Simulator\System\Ren'Py\renpy-6.3.0-full\renpy-6.3.0\datingsim/game/oct30.rpy: with statement does not expect a block. Please check the indentation of the line after this one.
Ren'Py Version: Ren'Py 6.3.0d"
Can anyone tell me what I did wrong?