Search found 678 matches

by Divona
Mon Nov 13, 2017 4:53 am
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Determining and Modifying Information Set In Variables
Replies: 4
Views: 639

Re: Determining and Modifying Information Set In Variables

Counting symbols (characters?) in a string would be len().
by Divona
Mon Nov 13, 2017 1:40 am
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Determining and Modifying Information Set In Variables
Replies: 4
Views: 639

Re: Determining and Modifying Information Set In Variables

A read on Python Strings should help take you towards the right direction.
by Divona
Mon Nov 13, 2017 1:29 am
Forum: Ren'Py Questions and Announcements
Topic: Creating a search bar in a screen (SOLVED)
Replies: 2
Views: 586

Re: Creating a search bar in a screen

"_return" will only return value when you "call" the screen, not show. Use Input Value objects to get result of the input instead: default input_result = "" screen search(): frame: has vbox: input value VariableInputValue("input_result") text "[input_resu...
by Divona
Sat Nov 11, 2017 11:10 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] couldn't find file in image composite using images with effects applied
Replies: 2
Views: 731

Re: couldn't find file in image composite using images with effects applied

"im.Composite" is an old code, and if my memory serves me right it only takes image file. Use LiveComposite instead.

Code: Select all

image quizp1 = LiveComposite(
    (720, 1280),
    (0,0), "quiz.png",
    (100, 700), "purple duck"
)
by Divona
Sat Nov 11, 2017 10:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]There is a problem with the use of flash and fade.
Replies: 2
Views: 632

Re: There is a problem with the use of flash and fade.

Code: Select all

define fade = Fade(1.0, 1.0, 2.0)
define flash = Fade(0.1, 0.2, 0.5, color="#FFFFFF")
define flashred = Fade(0.5, 1.0, 0.5, color="FF0000")
by Divona
Thu Nov 09, 2017 11:41 am
Forum: Ren'Py Questions and Announcements
Topic: Add a vertical bar when there are too many choices?
Replies: 6
Views: 1742

Re: Add a vertical bar when there are too many choices?

"xalign" and "yalign" both set to 0.5 so viewport should appear in the middle of the screen. Does that not the case? "xadjustment" and "yadjustment" are the position of "horizontal" and "vertical" scroll. If that's the part you want to move...
by Divona
Wed Nov 08, 2017 11:52 pm
Forum: Ren'Py Questions and Announcements
Topic: keysym & android
Replies: 4
Views: 629

Re: keysym & android

"K_AC_BACK"? It also list on the keymap as rollback.
http://pygame-sdl2.readthedocs.io/en/latest/#mobile
by Divona
Wed Nov 08, 2017 11:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Add a vertical bar when there are too many choices?
Replies: 6
Views: 1742

Re: Add a vertical bar when there are too many choices?

You have to make an edit to current "screen choice" in "screens.rpy" by add Viewport in: screen choice(items): style_prefix "choice" if len(items) >= 10: viewport: draggable True mousewheel True scrollbars "vertical" xsize gui.choice_button_width ysize config....
by Divona
Tue Nov 07, 2017 12:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Switching Quick Menus?
Replies: 3
Views: 582

Re: Switching Quick Menus?

The method above does have an issue, though. If "window hide" is use, the variable reset to False. Another way to do it is to set the variable in two places. First for ADV: screen say(who, what): style_prefix "say" on "show" action SetVariable("nvl_showing", F...
by Divona
Tue Nov 07, 2017 12:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Switching Quick Menus?
Replies: 3
Views: 582

Re: Switching Quick Menus?

I can't find variable needed in the documentation, so here is my take on making one up: First, declare a boolean variable: default nvl_showing = False In "screens.rpy" search for "screen nvl". Then add two line of code: screen nvl(dialogue, items=None): # Add these two lines. on ...
by Divona
Tue Nov 07, 2017 7:36 am
Forum: Ren'Py Questions and Announcements
Topic: How do I reset a value? (example: coins) (SOLVED)
Replies: 2
Views: 616

Re: How do I reset a value? (example: coins)

Depending on the system, but you could just set the variable to zero.

Code: Select all

    $ coins = 0
by Divona
Tue Nov 07, 2017 4:57 am
Forum: Ren'Py Questions and Announcements
Topic: syntax error help (resolved)
Replies: 2
Views: 441

Re: syntax error help

action ["I just left though.",Jump map] What with the text "I just left though." in action? That's not screen action. I assumed you're trying to have the narrator say that line? The easiest way is to jump to the appropriate label that says those line instead. Also, you can't jum...
by Divona
Tue Nov 07, 2017 4:38 am
Forum: Ren'Py Questions and Announcements
Topic: Circular timer
Replies: 1
Views: 652

Re: Circular timer