Search found 1264 matches
- 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...
- Fri Nov 06, 2009 8:55 am
- Forum: Creator Discussion
- Topic: Saving, saving as
- Replies: 7
- Views: 933
Re: Saving, saving as
You can:clueless still wrote:Thanks again, any info is appreciated.
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.
- 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
Remove the ## in front of this code(it's in options.rpy, line 192)RappyRed wrote:Is it possible to add music to the main menu with this script?
Code: Select all
config.main_menu_music = "your_music_name.mp3"
- 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...
- 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 &...
- 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...
- 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...
- 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
Probably this:http://docs.python.org/JinzouTamashii wrote:Does Python have a general documentation wiki too for operations like this?
- 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+...
- 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...
- 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...
- 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?
I think it's something like this:Nayru wrote:Could you give me an example please?
Code: Select all
init:
$ en = Character (None, condition='lang == "english"')
$ sp = Character (None, condition='lang == "castellano"')
$ ca = Character (None, condition='lang == u"català"')
- Sun Oct 18, 2009 10:11 pm
- Forum: Ideas
- Topic: I need tips....
- Replies: 16
- Views: 2116
Re: I need tips....
Maybe you should add a renpy.pause like so:The CRxTR wrote:Will this:
Code:...
...work?
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
- 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...
- 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....