Search found 101 matches

by MaydohMaydoh
Fri Sep 21, 2018 6:57 am
Forum: Ren'Py Questions and Announcements
Topic: Disable sound of selected imagebuttons? [SOLVED]
Replies: 7
Views: 319

Re: Disable sound of selected imagebuttons?

If you just want to get rid of the sound, shouldn't you just use the selected_ prefix? imagebutton auto "gui/window_%s.png" xpos 455 ypos y focus_mask True action [Preference('display', 'window'), SelectedIf(_preferences.fullscreen == False)] hover_sound "HOVER.wav" activate_sound "KETTEI.wav": sele...
by MaydohMaydoh
Tue Sep 11, 2018 4:38 am
Forum: Ren'Py Questions and Announcements
Topic: Custom caret in Name Input screen not animating
Replies: 5
Views: 302

Re: Problem with custom caret in Name Input screen

Instead of having two separate images, try merging them,

Code: Select all

image mycaret: 
    "brush.png"
    align (0.0, 0.9)
    block:
        yoffset -5
        pause .4
        yoffset 5
        pause.4                                                    
        repeat
by MaydohMaydoh
Sun Sep 09, 2018 6:41 am
Forum: Ren'Py Questions and Announcements
Topic: return to menu after script [solved]
Replies: 2
Views: 146

Re: return to menu after script

From your previous thread, I'm guessing you're using the Jump action, which for this won't work. You can't return from a jump. You should use Start("label_name") instead and put return at the end of the script, which will return you to the main menu.
by MaydohMaydoh
Sun Sep 09, 2018 6:34 am
Forum: Ren'Py Questions and Announcements
Topic: Readback Text History
Replies: 6
Views: 288

Re: Readback Text History

If you mean, you want history and don't want rollback, then disable rollback with define config.rollback_enabled = False and add key 'rollback' action ShowMenu('history') to the say screen or make a new screen and add it to overlay screens or something. History screen should already exist in screens...
by MaydohMaydoh
Fri Sep 07, 2018 4:25 pm
Forum: Ren'Py Questions and Announcements
Topic: imagebutton help
Replies: 2
Views: 144

Re: imagebutton help

You're using screen language in a label. What you want to do is make a screen with the button in it and then show the screen, also define your variable with default instead of a python statement. default test_01 =True screen test(): if test_01: imagebutton: xpos 402 ypos 22 idle "images/localisation...
by MaydohMaydoh
Thu Sep 06, 2018 1:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Imagebuttons in viewport disappear when ScrollValue added
Replies: 2
Views: 428

Re: Imagebuttons in viewport disappear when ScrollValue added

Try limiting the width of the vbar with xsize 20 or something.
by MaydohMaydoh
Thu Sep 06, 2018 1:17 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]ui.interact called with non-empty widget/layer stack Issue
Replies: 3
Views: 516

Re: ui.interact called with non-empty widget/layer stack Issue

What do the variables n_1, n_2, n...etc contain?
Also in your imagebutton at the end, it should action Return()
by MaydohMaydoh
Thu Sep 06, 2018 12:11 pm
Forum: Ren'Py Questions and Announcements
Topic: How to return the index of an array in a for loop?
Replies: 5
Views: 496

Re: How to return the index of an array in a for code]oop?

What you want is range and len

Code: Select all

for i in range(len(arrayTest)):
    text arrayTest[i]
by MaydohMaydoh
Thu Sep 06, 2018 11:07 am
Forum: Ren'Py Questions and Announcements
Topic: Persistent Input Option (Preferences Screen)
Replies: 3
Views: 563

Re: Persistent Input Option (Preferences Screen)

Would be better using FieldInputValue instead to directly change the persistent and and get rid of the pn variable.
by MaydohMaydoh
Wed Sep 05, 2018 2:28 pm
Forum: Ren'Py Questions and Announcements
Topic: Make viewport only show vertical scrollbar when needed?
Replies: 2
Views: 128

Re: Make viewport only show vertical scrollbar when needed?

Code: Select all

vbar value YScrollValue("viewport_test") unscrollable "hide"
by MaydohMaydoh
Wed Sep 05, 2018 8:05 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Assign numbered variables
Replies: 3
Views: 207

Re: Assign numbered variables

You would probably be better using a dictionary. goofy = { "charm_1" : 0, "charm_2" : 0, "charm_3" : 0 } if cond_1: $ counter += 1 $ goofy["charm_" + str(counter)] = value or even a list would do, goofy_charm = [0, 0, 0] if cond_1: $ counter += 1 $ goofy_charm[counter] = value And remember the first...
by MaydohMaydoh
Tue Sep 04, 2018 4:31 pm
Forum: Ren'Py Questions and Announcements
Topic: "Speech bubbles" with left and right variation? [SOLVED]
Replies: 5
Views: 370

Re: "Speech bubbles" with left and right variation?

You could try this, whether it works or not or if it's the right way to do it or whatever, I don't know. Using two variables, one for left and one for right default left_speaker = "" default right_speaker = "" Put the name of each person into their respective variables label start: $ left_speaker = ...
by MaydohMaydoh
Mon Sep 03, 2018 3:23 am
Forum: Ren'Py Questions and Announcements
Topic: Allowing saving during splashscreen
Replies: 21
Views: 719

Re: Allowing saving during splashscreen

I think Imperf3kt's method would work best. If you use a persistent variable in the main menu label to call the main menu screen if the prologue has been seen and use the start label as the prologue. label main_menu: if persistent.prologue: call screen main_menu else: return label start: "Prologue g...
by MaydohMaydoh
Sun Sep 02, 2018 7:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Edgescrolling
Replies: 2
Views: 215

Re: Edgescrolling

"If present, the third element is a function that adjusts the scrolling speed, based on how close to the pointer is to an edge. The function should take a number between -1.0 and 1.0, and return a number in the same range." So just make a function that returns the value it's given for a simple spee...