Search found 113 matches

by Chekhov
Wed Dec 22, 2021 5:40 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Is it possible to hide a screen dependent on the background being shown?
Replies: 2
Views: 310

Re: Is it possible to hide a screen dependent on the background being shown?

Ocelot wrote: Wed Dec 22, 2021 2:52 pm Did you try to use
https://www.renpy.org/doc/html/displayi ... py.showing
?

For transitions I am not sure what happens. It seems that many things stop evaluating for duration of transition.
Yeah, that works, thanks.
by Chekhov
Wed Dec 22, 2021 1:32 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Is it possible to hide a screen dependent on the background being shown?
Replies: 2
Views: 310

[Solved] Is it possible to hide a screen dependent on the background being shown?

I want to make the scriptwriting just a little bit cleaner for a project where there are a lot of cutscenes and fadeouts to black backgrounds. Instead of placing a command to hide and show two HUD screens each time, would there be a way to show or hide the screens dependent on the background? I am f...
by Chekhov
Sat Dec 04, 2021 1:03 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make the background inherit styles correctly?
Replies: 4
Views: 388

Re: How to make the background inherit styles correctly?

vbox does not have background property, so it is natural that it does not apply something that cannot be applied. I have a gard time grasping what you exactly trying to od, what does "sometimes it is a pixel more and sometimes a pixel less" means? How are you trying to do this. When I nee...
by Chekhov
Sat Dec 04, 2021 5:40 am
Forum: Ren'Py Questions and Announcements
Topic: How to make the background inherit styles correctly?
Replies: 4
Views: 388

How to make the background inherit styles correctly?

Okay, so it's the first time I'm working with styles in ren'py and I'm running into a wall. In this case I'm working on the "History" game screen. I'm trying to darken the area behind the lines of text. I've got an image with less than 100% opacity. However, when I style it this way style ...
by Chekhov
Fri Dec 03, 2021 10:48 am
Forum: Ren'Py Questions and Announcements
Topic: [solved] Is it possible to make a button transparent?
Replies: 7
Views: 487

Re: Is it possible to make a button transparent?

... add FileScreenshot(slot, empty='my_semitransparent_displayable') xalign 0.5 #empty is a component of filescreenshot, not fileaction ... Oops, sorry - glad you've solved this... :roll: Well I learned an interesting new function and it helped me. Thanks! The docs on FileScreenshot are cryptic, bu...
by Chekhov
Thu Dec 02, 2021 4:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Is it possible to make a button transparent?
Replies: 7
Views: 487

Re: Is it possible to make a button transparent?

Does following not work? transform halftransparent: alpha 0.5 # . . . button: #... at halftransparent This does not work. Because then it makes the button transparent even if there is a save present in that slot, which is not intended behaviour. (Which admittedly, I may not have made clear in my po...
by Chekhov
Thu Dec 02, 2021 1:18 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Is it possible to make a button transparent?
Replies: 7
Views: 487

Re: Is it possible to make a button transparent?

Heh I thought there was a reply before and I tried out the solution, but it did not work. I guess he found out it didn't work and deleted it ;)

I appreciate the effort to help though! Thank you for trying to help me work this out!

I've been trying a couple of things but still no success.
by Chekhov
Thu Dec 02, 2021 12:27 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] Is it possible to make a button transparent?
Replies: 7
Views: 487

[solved] Is it possible to make a button transparent?

This is the regular code that shows the file slots. Unless I'm mistaken, the relevant code that creates the look of the save/load slots is this: button: action FileAction(slot) has vbox add FileScreenshot(slot) xalign 0.5 text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), emp...
by Chekhov
Fri Nov 19, 2021 6:56 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Changing values of variables with a screen action
Replies: 2
Views: 338

Re: Changing values of variables with a screen action

First argument to SetVariable is name of the variable, not the vairable itself. SetVariable("hours", 5) The `name` argument must be a string, and can be a simple name like "strength", or one with dots separating the variable from fields, like "hero.strength" or "p...
by Chekhov
Fri Nov 19, 2021 6:38 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Changing values of variables with a screen action
Replies: 2
Views: 338

[Solved] Changing values of variables with a screen action

I've been trying to get a better grip on the screen language. What is the right way to use screens to change a variable? Something like textbutton _("hide nudity") action SetVariable(persistent.nudity_, "off") doesn't work. Because persistent values aren't just strings. Any ideas...
by Chekhov
Sun Nov 14, 2021 4:14 am
Forum: Ren'Py Questions and Announcements
Topic: [solved = alternative solution] Is it possible to read back from an image how much it has been rotated?
Replies: 6
Views: 655

Re: Is it possible to read back from an image how much it has been rotated?

timer 0.1 repeat True action SetScreenVariable("degree", degree+1 if degree < 359 else 0) Pfffft I spent hours trying to achieve this. I'm so glad to have this. Thank you. 1. The clock CDD Alex posted contains an example of using a CDD to animate rotation. At a high level, it involves man...
by Chekhov
Sat Nov 13, 2021 8:59 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved = alternative solution] Is it possible to read back from an image how much it has been rotated?
Replies: 6
Views: 655

Re: Is it possible to read back from an image how much it has been rotated?

Note too... the hour hand of a clock rotates twice in 24 hours, so (hour * 30) might be more suitable Appreciated! That's a nice catch. It's a 24 hours clock though ;) As in the clock runs from 0 to 23 in a single rotation. I'll be honest -- can't tell what you're trying to do from the couple posts...
by Chekhov
Fri Nov 12, 2021 9:51 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved = alternative solution] Is it possible to read back from an image how much it has been rotated?
Replies: 6
Views: 655

[solved = alternative solution] Is it possible to read back from an image how much it has been rotated?

I'm still manipulating timecircles. There are a number of variables that are influencing rotation: time, player interaction, gamescore. 1. Is there a way to receive into a variable how much an image is rotated? The image is currently in a screen: transform ticking: subpixel True rotate 0 linear 90 r...
by Chekhov
Thu Nov 11, 2021 6:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to grab and rotate an image?
Replies: 6
Views: 664

Re: Is it possible to grab and rotate an image?

Ocelot wrote: Thu Nov 11, 2021 4:36 pm 3. Create a screen with a repeating timer. Change value inside timer action.
1-2. I would look into using an invisible Drag to do this kind of stuff.
Creating a screen with a repeating timer.... I've given it a go and tried a number of methods, but have not managed to do so effectively.
by Chekhov
Thu Nov 11, 2021 4:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to grab and rotate an image?
Replies: 6
Views: 664

Re: Is it possible to grab and rotate an image?

...But at some point it stops rotating? I'm so confused how that happens. Try it like transform ticking: subpixel True rotate 0 linear 90 rotate 360 repeat ohhh my bad, I didn't notice I had an old screen open and I kept checking the wrong window where it had stopped. Too much time staring at the s...