Search found 2397 matches

by Ocelot
Thu Feb 29, 2024 4:29 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]How to change a variable in a animation using a imagebutton?
Replies: 14
Views: 634

Re: How to change a variable in a animation using a imagebutton?

In short, it isn't possible. TransitionAnimation oficially does not support changing its parameters once created. In addition, TransitionAnimation itself is not supported anymore and its entry in documentation is deleted.
by Ocelot
Wed Feb 28, 2024 3:43 am
Forum: Ren'Py Questions and Announcements
Topic: Why Are All Groups Being Affected in My LayeredImage?
Replies: 4
Views: 349

Re: Why Are All Groups Being Affected in My LayeredImage?

when offset is applied to inner image, it partially moves outside of image boundaries, changing them. This makes whole image be repositioned. For example if you aligned your image around 0.5, 0.5, after first line of animation it will move 2 pixels to the bottom-left.
by Ocelot
Tue Feb 27, 2024 8:55 am
Forum: Ren'Py Questions and Announcements
Topic: Why Are All Groups Being Affected in My LayeredImage?
Replies: 4
Views: 349

Re: Why Are All Groups Being Affected in My LayeredImage?

Is "bg1" by any chance the same size as "panel01"?
by Ocelot
Sun Feb 25, 2024 4:55 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Help making a slider bar to change the Save/Load page
Replies: 14
Views: 686

Re: Help making a slider bar to change the Save/Load page

Bar takes thumb property: https://www.renpy.org/doc/html/style_pr ... erty-thumb
It is a displayable which is used for, well, bar thumb. You can define any displayable and use it there.
by Ocelot
Sun Feb 25, 2024 4:36 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Help making a slider bar to change the Save/Load page
Replies: 14
Views: 686

Re: Help making a slider bar to change the Save/Load page

When defining displayable for a bar thumb, add yalign=0.5 to make it centered on a bar. Or play with yoffset property to control position manually.
by Ocelot
Sun Feb 25, 2024 4:29 pm
Forum: Ren'Py Questions and Announcements
Topic: pause delay does not work when loading save
Replies: 6
Views: 416

Re: pause delay does not work when loading save

IIRC Renpy fast-forwardsuntil it finds a place requiring interaction from player. The better way would probably be to make animation as an ATL script and display it before loop. image eileen sad = Placeholder() image eileen happy = Placeholder() image eileen waiting: "eileen sad" 1.0 "...
by Ocelot
Sun Feb 25, 2024 3:27 pm
Forum: Ren'Py Questions and Announcements
Topic: pause delay does not work when loading save
Replies: 6
Views: 416

Re: pause delay does not work when loading save

Link does not work. You probably have created a private github repo instead of public one.
by Ocelot
Sun Feb 25, 2024 3:27 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Help making a slider bar to change the Save/Load page
Replies: 14
Views: 686

Re: Help making a slider bar to change the Save/Load page

If you are using f-strings, then f'{FilePageName()]:0>2} / 99' will show you page number padded with leading zeroes to be two wide. You can set bar's released or even changed properties to invoke FilePage action to set page you want. https://www.renpy.org/doc/html/screens.html#bar https://www.renpy....
by Ocelot
Sat Feb 24, 2024 2:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to rollback past a pause?
Replies: 6
Views: 379

Re: Is it possible to rollback past a pause?

Does rollback with mousewheel works?
If so, you just have say screen hidden. IIRC pause statement might hide it.
by Ocelot
Thu Feb 22, 2024 9:46 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Creating a loop that searches a specific variable
Replies: 8
Views: 1012

Re: [Solved]Creating a loop that searches a specific variable

This depends on your code. Maybe you are changing external list which is not used by switch. Maybe you are changing it by something not restarting interaction. Maybe something else...
by Ocelot
Thu Feb 22, 2024 2:53 am
Forum: Ren'Py Questions and Announcements
Topic: renpy.count_seen_dialogue_blocks() always returns 0
Replies: 5
Views: 185

Re: renpy.count_seen_dialogue_blocks() always returns 0

Yes. Because they are dialogue blocks. 14 of them. Python code are not dialogue blocks. Jump statement are not dialogue blocks.
by Ocelot
Sat Feb 17, 2024 12:36 pm
Forum: Ren'Py Questions and Announcements
Topic: Darken all but part of the screen
Replies: 3
Views: 559

Re: Darken all but part of the screen

Your first problem is that you are creating trasparent image and posing it over transparent canvas. You need to work backwards: pose a opaque image over transparent canvas and use it in AlphaMask inverted You code can work if you make Solid in highlight opaque and add invert=True to the AlphaMask ca...
by Ocelot
Sat Feb 17, 2024 5:16 am
Forum: Ren'Py Questions and Announcements
Topic: Is there something I can run, like Lint, which can detect unused files?
Replies: 2
Views: 190

Re: Is there something I can run, like Lint, which can detect unused files?

First of all, making such a tool, which will accurately work for any kind of RenPy game, is mathematically impossible (it is equivalent to solving halting problem). On the other hand, if your game does not use DynamicImage, loading from external files, dynamically constructed paths and similar thing...
by Ocelot
Sat Feb 17, 2024 4:55 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Making the player click on multiple imagebuttons before closing the screen
Replies: 2
Views: 210

Re: Making the player click on multiple imagebuttons before closing the screen

1) You can use ATL transformations with arguments to make button appear after some time. transform delay_appear(delay=0.0): alpha 0.0 pause delay linear 0.5 alpha 1.0 screen cards(): imagebutton: at delay_appear(0.0) # . . . imagebutton: at delay_appear(0.5) # . . . imagebutton: at delay_appear(1.0)...
by Ocelot
Wed Feb 14, 2024 4:41 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Bypassing imagebutton's hovred-action corelation under condition
Replies: 5
Views: 238

Re: Bypassing imagebutton's hovred-action corelation under condition

Button with no action is considered insensitive and does not respond to evens. You have to have an action to have a working button.