Search found 2211 matches

by Alex
Tue Jun 11, 2019 1:25 pm
Forum: Ren'Py Questions and Announcements
Topic: end line expected error made me crazy
Replies: 10
Views: 439

Re: end line expected error made me crazy

If you need to set several actions, put them in square brackets, like

Code: Select all

hotspot (34, 70, 297, 53) action [Hide ("andreasitescreen"), Call ("andncc")]

If that doesn't solve the issue, provide the exact error message you'll get.
by Alex
Sat Jun 08, 2019 9:47 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adjust volume bar with left/ right arrow key
Replies: 5
Views: 535

Re: Adjust volume bar with left/ right arrow key

... Even if I am somewhere else on the settings UI, pressing left/ right will still adjust the volume, which I don't want as I cannot select other buttons left and right beneath the bars. ... I thought it was what your were looking for... Well, then try to make a separate screen to reassign keys ac...
by Alex
Fri Jun 07, 2019 9:37 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Adjust volume bar with left/ right arrow key
Replies: 5
Views: 535

Re: Adjust volume bar with left/ right arrow key

Try to set actions like

Code: Select all

key "focus_left" action SetDict (_preferences.volumes,'music', max (0.0, (_preferences.volumes['music'] - 0.1) ) )
key "focus_right" action SetDict (_preferences.volumes,'music', min (1.0, (_preferences.volumes['music'] + 0.1) ) )
by Alex
Sun Jun 02, 2019 4:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Dating Sim Engine - how to remove the "done planning" button?
Replies: 1
Views: 397

Re: Dating Sim Engine - how to remove the "done planning" button?

Looks like this action Return() is necessary to progress the game. So, if you don't need it as a separete button just add this action to the choice button. Try something like if show_this: if enable: textbutton name action [SetField(store, this_period.var, curr_val), Return()] (you can set a list of...
by Alex
Sun Jun 02, 2019 4:28 pm
Forum: Ren'Py Questions and Announcements
Topic: Textbutton overlaping
Replies: 3
Views: 396

Re: Textbutton overlaping

So, is it good, or..?
by Alex
Sun Jun 02, 2019 2:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Textbutton overlaping
Replies: 3
Views: 396

Re: Textbutton overlaping

What if you set spacing property for the box?

Code: Select all

        side_yfill True
        has vbox
        spacing 5
        if kitchen == True:
            textbutton "{size=-3}OptionA" action ui.callsinnewcontext("chat_kitchen_day")
https://www.renpy.org/doc/html/style_pr ... properties
by Alex
Sun Jun 02, 2019 5:50 am
Forum: Asset Creation: Writing
Topic: Problem with imagemap
Replies: 2
Views: 657

Re: Problem with imagemap

It's better to use a number of imagebuttons - you could make a condition to show/hide them separately. https://www.renpy.org/doc/html/screens.html Also, check this - https://lemmasoft.renai.us/forums/viewtopic.php?p=478861#p478861 (and that might be of some help - https://lemmasoft.renai.us/forums/v...
by Alex
Sat Jun 01, 2019 1:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Side bars, custom screen help
Replies: 3
Views: 510

Re: Side bars, custom screen help

The simplest way is to create a stats screen (with 2 frames where all the stats will be placed) and just show this screen.
https://www.renpy.org/doc/html/screens.html
by Alex
Sat Jun 01, 2019 1:33 pm
Forum: Ren'Py Questions and Announcements
Topic: How to create a second frame?
Replies: 2
Views: 419

Re: How to create a second frame?

Try

Code: Select all

screen bla_bla_bla:
    frame:
        style "frame_2"
        text "?!"
by Alex
Tue May 28, 2019 3:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Textbutton with two lines with different align. Is it possible?
Replies: 2
Views: 429

Re: Textbutton with two lines with different align. Is it possible?

Or try to put those text lines inside a button - https://www.renpy.org/doc/html/screens.html#button button: align(0.5,0.15) idle_background gui.idle_color hover_background gui.hover_color vbox: xysize(200,200) text "Line 1" align(0.0, 0.2) text "Line 2" align(1.0, 0.8) action NullAction()
by Alex
Sun May 26, 2019 6:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Call fonction in a general screen
Replies: 2
Views: 469

Re: Call fonction in a general screen

Try to make an apropriate function and run it when showing the screen

Code: Select all

screen lalala():
    on "show" action Function(my_func)
https://www.renpy.org/doc/html/screens.html#on
by Alex
Sat May 25, 2019 5:39 am
Forum: Ren'Py Questions and Announcements
Topic: I want to make a health-bar/life system [Solved]
Replies: 13
Views: 750

Re: I want to make a health-bar/life system [HELP]

Well, the only thing you need to do is replace bar value AnimatedValue(value=health, range=max_health, delay=2.0) in your healthscreen screen with the ConditionSwitch, that changes image depending of health variable. You don't need to change other things you've already done to make a button to show/...
by Alex
Fri May 24, 2019 1:30 pm
Forum: Ren'Py Questions and Announcements
Topic: How to enable Quick Menu if Main Menu is skipped
Replies: 3
Views: 414

Re: How to enable Quick Menu if Main Menu is skipped

Well, try something like

Code: Select all

label splashscreen:
    $ persistent.my_flag = False
    "stuff"
    return

label main_menu:
    if not persistent.my_flag:
        $ persistent.my_flag = True
        return
    call screen main_menu
by Alex
Fri May 24, 2019 11:29 am
Forum: Ren'Py Questions and Announcements
Topic: I want to make a health-bar/life system [Solved]
Replies: 13
Views: 750

Re: I want to make a health-bar/life system [HELP]

In this case you can use a simple ConditionSwitch instead of bar - viewtopic.php?f=51&t=19063
by Alex
Fri May 24, 2019 11:24 am
Forum: Ren'Py Questions and Announcements
Topic: How to enable Quick Menu if Main Menu is skipped
Replies: 3
Views: 414

Re: How to enable Quick Menu if Main Menu is skipped

Try to get rid of jump and end the splashscreen label with return statement to let it go to main menu and actually start game from there.
If you don't need main menu at all make a label

Code: Select all

label main_menu:
    return