Search found 1264 matches

by JQuartz
Sun Nov 08, 2009 1:59 am
Forum: Creator Discussion
Topic: If - Else
Replies: 2
Views: 519

Re: If - Else

Is there a more economical way to write the following? Try putting the if only for the parts that are different: label statue: nvl clear $time+=1 "There's a statue here." if time==1004: "Headlights approach and pass by." menu: "\nApproach the statue.": jump approach &q...
by JQuartz
Fri Nov 06, 2009 8:55 am
Forum: Creator Discussion
Topic: Saving, saving as
Replies: 7
Views: 933

Re: Saving, saving as

clueless still wrote:Thanks again, any info is appreciated.
You can:
1) Copy the whole project folder -OR-
2) Make a copy of the rpy file in another folder. -OR-
3) Make a copy but change its extension to txt.
by JQuartz
Fri Nov 06, 2009 8:50 am
Forum: Ren'Py Questions and Announcements
Topic: Music in the Menu
Replies: 16
Views: 11965

Re: Music in the Menu

RappyRed wrote:Is it possible to add music to the main menu with this script?
Remove the ## in front of this code(it's in options.rpy, line 192)

Code: Select all

config.main_menu_music = "your_music_name.mp3"
by JQuartz
Sun Nov 01, 2009 11:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Question about Spline motion and editor
Replies: 2
Views: 496

Re: Question about Spline motion and editor

Any smarter way for this? I don't know if it's smarter but you can make an animation that starts with an image that is totally transparent, then with just a dot at the starting position, then with the dot and the first line,..., and finally with an image that has all the lines and dots. This animat...
by JQuartz
Sun Nov 01, 2009 2:58 am
Forum: Ren'Py Questions and Announcements
Topic: Is this a bug?
Replies: 12
Views: 1236

Re: Is this a bug?

show k n with dissolve "K" "blahblah {nw}" show k s with dissolve extend "huh?" # occures error I don't think you can use extend without a character. Just set K as a character in the init or script like so: init: show k n with dissolve $ K =Character("K") K &...
by JQuartz
Wed Oct 28, 2009 8:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Converting game time code to hours/min [SOLVED]
Replies: 24
Views: 3975

Re: Converting minutes and seconds gametime code to hours/min

This is the code I used and it starts on line 41. $ hours= divmod(int(renpy.get_game_runtime()), 3600) $ minutes= divmod(int(renpy.get_game_runtime()), 60) "You finished the game in %(hours)d and %(minutes)d minutes." Use two variables instead of one: $ hours, minutes= divmod(int(renpy.ge...
by JQuartz
Sun Oct 25, 2009 2:35 am
Forum: Ren'Py Questions and Announcements
Topic: Having problems
Replies: 1
Views: 477

Re: Having problems

when I put a background image in I get a error. Like the error says, identation mismatch: 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: image bg maple = "maple.jpg" $ k = Ch...
by JQuartz
Sat Oct 24, 2009 6:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Converting game time code to hours/min [SOLVED]
Replies: 24
Views: 3975

Re: Converting minutes and seconds gametime code to hours/min

JinzouTamashii wrote:Does Python have a general documentation wiki too for operations like this?
Probably this:http://docs.python.org/
by JQuartz
Fri Oct 23, 2009 8:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Converting game time code to hours/min [SOLVED]
Replies: 24
Views: 3975

Re: Converting minutes and seconds gametime code to hours/min

I would like to convert that into hours and minutes, with hours possibly given as a decimal if > a value of 1. Here a way to do it, it's unefficient though: label start: $ hours=0 $ minutes, seconds = divmod(int(renpy.get_game_runtime()), 60) $ minute=minutes while minute>=60: $ minute-=60 $ hours+...
by JQuartz
Fri Oct 23, 2009 8:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Defining imagebuttons to stay on current screen [Solved]
Replies: 7
Views: 637

Re: Defining imagebuttons to stay on current screen

When I select the 'gore mode' option from the menu screen and into the game, my in-game images(xcept the background) completely disappears into nowhere. Is it because I use ui.images for displaying my in-game CGs? Yes. But since you need to ui.callsinnewcontext this screen, the images(including the...
by JQuartz
Fri Oct 23, 2009 12:24 am
Forum: Ren'Py Questions and Announcements
Topic: Defining imagebuttons to stay on current screen [Solved]
Replies: 7
Views: 637

Re: Defining imagebuttons to stay on current screen

Once I click on a option, I want the buttons to stay on its activated state(Like the preference screen), so that players can see what they chose in case they forgot. I don't want return to the game screen once I click on an option. I want to stay on the current screen, with the buttons activated. Y...
by JQuartz
Fri Oct 23, 2009 12:10 am
Forum: Ren'Py Questions and Announcements
Topic: In-line translation error?
Replies: 7
Views: 1319

Re: In-line translation error?

Nayru wrote:Could you give me an example please?
I think it's something like this:

Code: Select all

init:
    $ en = Character (None, condition='lang == "english"')
    $ sp = Character (None, condition='lang == "castellano"')
    $ ca = Character (None, condition='lang == u"català"')
by JQuartz
Sun Oct 18, 2009 10:11 pm
Forum: Ideas
Topic: I need tips....
Replies: 16
Views: 2116

Re: I need tips....

The CRxTR wrote:Will this:
Code:...

...work?
Maybe you should add a renpy.pause like so:

Code: Select all

label splashscreen:
    scene black
    show text "{font=DejaVuSans.ttf}Studio Somewhere presents{/font}" with dissolve
    
    $ renpy.pause(1)
    hide text with dissolve
    return
by JQuartz
Sun Oct 18, 2009 6:31 am
Forum: Ideas
Topic: I need tips....
Replies: 16
Views: 2116

Re: I need tips....

The screen reveals the text (centered on the screen in another font that is not used by the UI): "Studio Somewhere presents" You can use: label splashscreen: centered "{font=DejaVuSans.ttf}Studio Somewhere presents{/font}" return return Will it do the similar thing as the Ren'Py...
by JQuartz
Sun Oct 18, 2009 6:16 am
Forum: Ideas
Topic: I need tips....
Replies: 16
Views: 2116

Re: I need tips....

So I go to the "player menu". (Inspired from the Ren'Py demo and I wonder if how did PyTom made it.) Image You can use ui.textbutton with overlay. Read about overlay here: http://www.renpy.org/wiki/renpy/doc/reference/Overlays I click the button and this UI shows up. Image You can use ui....