Search found 3094 matches

by Alex
Wed Apr 10, 2013 3:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Textbox help!
Replies: 7
Views: 911

Re: Textbox help!

So if you complain about textbox been too small, you could set its minimal height - in "options.rpy" find

Code: Select all

    ## This is the minimum height of the window, including the margins
    ## and padding.

    style.window.yminimum = 250
by Alex
Wed Apr 10, 2013 3:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Python minigames in Ren'Py?
Replies: 9
Views: 17480

Re: Python minigames in Ren'Py?

Mmm... actually PyTom gave you an answer

Code: Select all

hbox:
            add "Diamond_small.png"
            text "Diamonds: [diamonds]"
Or do you mean something else?

http://www.renpy.org/doc/html/screens.html#hbox
http://www.renpy.org/doc/html/screens.html#vbox
by Alex
Wed Apr 10, 2013 3:44 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]More than one sprite + [solved] "if" command
Replies: 4
Views: 688

Re: [not solved]More than one sprite + [solved] "if" command

Actually both of your pictures should be shown... but the second one over the first 'cause you didn't specified the positions for them (so if the second image is equal or bigger than first it overlaps it completely). It would be better to make a screen that has all the achievement images, so you cou...
by Alex
Wed Apr 10, 2013 3:15 pm
Forum: Ren'Py Questions and Announcements
Topic: DynamicChar's image, & position "behind" [Solved]
Replies: 2
Views: 1880

Re: DynamicCharacter's image and name color, & position "beh

The problem caused by this: label start: $ lady = "Lady" you've reassigned the value of "lady" - it's not a character anymore, it's a variable that has a string value "Lady". Just correct the character definition define l = DynamicCharacter('lady', color="#FF0000&q...
by Alex
Tue Apr 09, 2013 11:41 am
Forum: Ren'Py Questions and Announcements
Topic: Rollback and skip-mode issues [solved]
Replies: 4
Views: 2804

Re: Rollback and skip-mode issues [solved]

That's it! (should quit reading manual late at night 'cause I'm missing too much info)
Thanks again, apricotorange...))
by Alex
Tue Apr 09, 2013 11:21 am
Forum: Ren'Py Questions and Announcements
Topic: Make a function
Replies: 4
Views: 668

Re: Make a function

You could try to put this code in a separate label and call it later from different points of your script
http://www.renpy.org/wiki/renpy/doc/ref ... _Statement
by Alex
Tue Apr 09, 2013 11:16 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Question: How do you skip the main menu?
Replies: 2
Views: 440

Re: Question: How do you skip the main menu?

Code: Select all

label main_menu:
    return
put it in any rpy-file of your project.
by Alex
Mon Apr 08, 2013 5:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Rollback and skip-mode issues [solved]
Replies: 4
Views: 2804

Re: Rollback and skip-mode issues

Sorry for late reply - was a bit busy to try it. Thanks for the link - I've missed it somehow. So it looks like it's impossible to get rid of menus completely when player skipping rolled back game (even if the game leaves the player the only previously chosen choice to choose, player must click it a...
by Alex
Sun Apr 07, 2013 1:23 am
Forum: Ren'Py Questions and Announcements
Topic: Rollback and skip-mode issues [solved]
Replies: 4
Views: 2804

Rollback and skip-mode issues [solved]

Hi, folks! Got a couple of questions. 1) about rollback and player's choices: imagine the player made some choices then rolled back the game and turned on skip mode, so how to make the game automaticaly choose the choices that was chosen by player (and not stop at the menus to let player make anothe...
by Alex
Fri Apr 05, 2013 4:38 pm
Forum: Ren'Py Questions and Announcements
Topic: making preferences/menus etc show up over pages (~solved~)
Replies: 1
Views: 490

Re: making preferences/menus etc show up over pages

Just set the game menu background to "nothing" - in "options.rpy" find and replace

Code: Select all

gm_root = Null(),
by Alex
Sat Mar 30, 2013 3:53 pm
Forum: Ren'Py Questions and Announcements
Topic: On using points and operators...
Replies: 2
Views: 392

Re: On using points and operators...

Try

Code: Select all

if a>b and a>c and a>d:
    jump aending
by Alex
Sat Mar 30, 2013 11:44 am
Forum: Ren'Py Questions and Announcements
Topic: different backgrounds for the same game menu
Replies: 3
Views: 620

Re: different backgrounds for the same game menu

Try to use ConditionSwitch gm_root = ConditionSwitch("my_var == 'ch1'", "#000", "my_var == 'ch2'", "#c00", "True", "#dcebff"), init: $ my_var = "ch1" # The game starts here. label start: e "You've created a new Ren'Py game.&q...
by Alex
Fri Mar 22, 2013 11:39 am
Forum: Ren'Py Questions and Announcements
Topic: How to check for a percentage of a variable?
Replies: 1
Views: 381

Re: How to check for a percentage of a variable?

Try

Code: Select all

if currenthealth < (maxhealth*0.5)
by Alex
Tue Mar 19, 2013 1:40 pm
Forum: Ren'Py Questions and Announcements
Topic: "None type object not callable" [solved]
Replies: 4
Views: 805

Re: "None type object not callable"

You can't compare the value of variable that has no value at all (var = None), so that might cause your second error. As a workaround for the first issue you can hide nonexistent screen ( Hide("smth") ) - for now it's not causing errors, but may be changed by PyTom in future (like it was f...