Search found 953 matches

by Kia
Mon Jul 19, 2021 1:55 pm
Forum: Ren'Py Questions and Announcements
Topic: alternate_sound for buttons?
Replies: 2
Views: 600

Re: alternate_sound for buttons?

looks like all we need is passing the event to the function and playing the right sound accordingly. def handle_click(action, event): if event == "click": renpy.exports.play(self.style.activate_sound) elif event == "alternate": renpy.exports.play(self.style.alternate_sound) elif event == "inactive":...
by Kia
Mon Jul 19, 2021 3:31 am
Forum: Ren'Py Questions and Announcements
Topic: alternate_sound for buttons?
Replies: 2
Views: 600

alternate_sound for buttons?

I've noticed that there's no alternate_sound in the button styles and I wanted to make sure it doesn't exist before suggesting it.
Also I wonder if we have a set of dragged_sound, clicked_sound, activated_sound for drags or do we have to use the python functions instead?
by Kia
Sat Jul 17, 2021 9:03 am
Forum: Development of Ren'Py
Topic: Ren'Py Gripes
Replies: 526
Views: 177069

Re: Ren'Py Gripes

I've been tinkering with an easy way to fade backgrounds into each other based on a time keeping function and it turned out to be more complicated than I expected. I can think of several ways to do it using screens, but I have an idea that will make it much less complicated: Multiple timelines This ...
by Kia
Mon May 17, 2021 10:03 am
Forum: Ren'Py Questions and Announcements
Topic: [solved]evaluate variable as screen name for `use`
Replies: 2
Views: 571

Re: [solved]evaluate variable as screen name for `use`

thank you Ocelot, you're a savior.
I always miss those parts for some reason. I knew I saw it somewhere, just couldn't remember what it was :oops:
by Kia
Mon May 17, 2021 5:35 am
Forum: Ren'Py Questions and Announcements
Topic: [solved]evaluate variable as screen name for `use`
Replies: 2
Views: 571

[solved]evaluate variable as screen name for `use`

I'm wondering, is there any way to make this work?:

Code: Select all

    default screens = ["scr1", "scr2"]
    for i in screens:
        use i
by Kia
Sun May 02, 2021 1:58 am
Forum: Ren'Py Questions and Announcements
Topic: save cropped screeshot [solved]
Replies: 13
Views: 914

Re: save cropped screeshot

Ocelot wrote:
Mon Apr 26, 2021 4:05 pm
Can you then take take_screenshot as base function and add cropping code from save_screenshot?
Thank you, the scaling solved the problem, and sorry about the delayed answer, I got swamped with work and couldn't get any free time for few days ^^
by Kia
Wed Apr 28, 2021 2:03 am
Forum: Ren'Py Questions and Announcements
Topic: get the length of displayed "what" text in say
Replies: 3
Views: 524

Re: get the length of displayed "what" text in say

Not yet, I was busy with few other tasks and haven't had the time to come back to this issue yet, I'll let you know once I got any results.
by Kia
Mon Apr 26, 2021 3:44 pm
Forum: Ren'Py Questions and Announcements
Topic: save cropped screeshot [solved]
Replies: 13
Views: 914

Re: save cropped screeshot

the source of problem is before cropping step, the line window = renpy.display.draw.screenshot(self.surftree) returns a screenshot at the current window size that can be any size in windowed mode, the crop will be inaccurate because of that
by Kia
Mon Apr 26, 2021 3:14 pm
Forum: Ren'Py Questions and Announcements
Topic: save cropped screeshot [solved]
Replies: 13
Views: 914

Re: save cropped screeshot

Unfortunately the function uses another function to capture the screenshot and I can't find the class to add a method to it that returns a full size render def save_screenshot(self, filename): """ Saves a full-size screenshot in the given filename. """ window = renpy.display.draw.screenshot(self.sur...
by Kia
Mon Apr 26, 2021 1:02 pm
Forum: Ren'Py Questions and Announcements
Topic: save cropped screeshot [solved]
Replies: 13
Views: 914

Re: save cropped screeshot

I did that, there is one problem with using renpy.screenshot out of the box. it screenshots at the current window size and messes up the cropping, that's why I'm looking deeper into it's function and trying to figure out how to capture the screen at the original size instead. since renpy.screenshot ...
by Kia
Mon Apr 26, 2021 10:42 am
Forum: Ren'Py Questions and Announcements
Topic: save cropped screeshot [solved]
Replies: 13
Views: 914

Re: save cropped screeshot

well, I've use config.debug and managed to get the save screen work (I was missing the file extension) but the more I dig, the harder it gets. now I need to figure out how to pass renpy.take_screenshot((1920,1080)) photo = renpy.game.interface.get_screenshot() to renpy.display.scale.image_save_unsca...
by Kia
Mon Apr 26, 2021 4:12 am
Forum: Ren'Py Questions and Announcements
Topic: save cropped screeshot [solved]
Replies: 13
Views: 914

Re: save cropped screeshot

oh, you mean debug, looks like you've typed it in a hurry. I'll try it, thank you
by Kia
Mon Apr 26, 2021 12:46 am
Forum: Ren'Py Questions and Announcements
Topic: save cropped screeshot [solved]
Replies: 13
Views: 914

Re: save cropped screeshot

mavyxdawn wrote:
Sun Apr 25, 2021 9:06 pm
have you tried screenshot_crop?
I did, but I'm trying to take the screenshot in a python function where I calculate the crop every time, give it my own name and save it to the destination I'm giving it. To use that one, I need to make `renpy.screenshot(filename)` work and it just returns False.
by Kia
Sun Apr 25, 2021 3:27 pm
Forum: Ren'Py Questions and Announcements
Topic: save cropped screeshot [solved]
Replies: 13
Views: 914

save cropped screeshot [solved]

I've been trying to figure out how to take a screenshot and crop it before saving it. but it's not going as I imagined. since I'm out of ideas, here's what I've tried, please let me know if there's something I'm missing or doing wrong. renpy.screenshot(filename) seems to return False every time and ...
by Kia
Sun Apr 25, 2021 12:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Camera shutter effect
Replies: 2
Views: 338

Re: Camera shutter effect

you can flash a screen with a timer that hides the screen after a short time

Code: Select all

screen camera_flash:
    add "#fff"
    timer .1 action Hide("camera_flash")
of course you can add some fading animation to make it look more like a camera flash