Search found 112 matches

by strayerror
Sat May 30, 2020 10:25 pm
Forum: Ren'Py Questions and Announcements
Topic: How to center text in a textbutton?
Replies: 12
Views: 86

Re: How to center text in a textbutton?

How you tackle this hinges on what it is you actually want: - Do you want a button that's the size of the background image, with the text centred on it? - Or do you want a button that's the size of your text with the background adjusted to fill it? If the first, then MaydohMaydoh's solution along wi...
by strayerror
Mon Apr 13, 2020 1:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Transforming tags
Replies: 0
Views: 234

Transforming tags

From time to time it makes sense to use a show expression statement using the as clause to tag it so it's easy to hide later. This functionality works great. I would like to do something similar for applying transforms. As far as I'm aware the only way to achieve this is to repeat the entire show ex...
by strayerror
Sun Apr 12, 2020 3:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Scrolling Credits - Long Lag Time Before They Appear
Replies: 5
Views: 226

Re: Scrolling Credits - Long Lag Time Before They Appear

Assuming that the frame containing the credits is correctly sized (it should be, Ren'Py should expand it to include all your text), you can use this tweaked transform to start with the top of the frame aligned with the bottom of the screen, and slowly move up until the bottom of the frame is aligned...
by strayerror
Sun Mar 22, 2020 2:44 am
Forum: Ren'Py Questions and Announcements
Topic: InputValue and Editing Values on a Screen
Replies: 6
Views: 488

Re: InputValue and Editing Values on a Screen

I think this is what you were aiming for, we'll see. First problem is multiple inputs on one screen. You can only ever edit one at a time, so we need some kind of focus control - in this case the active var. We also modulus this when using it to ensure we loop around the inputs in both directions. T...
by strayerror
Sat Mar 21, 2020 10:46 pm
Forum: Development of Ren'Py
Topic: Ren'Py Gripes
Replies: 509
Views: 129331

Re: Ren'Py Gripes

We have the behind keyword for repositioning a layer further back from the screen than it started, but there's no way to easily achieve the inverse when dealing with multiple layers. For example if we have four sprites: A, B, C and D; displayed in that order, then to move B in front of C, we need to...
by strayerror
Sat Feb 29, 2020 11:03 am
Forum: Ren'Py Questions and Announcements
Topic: Different random after scroll back
Replies: 12
Views: 412

Re: Different random after scroll back

Assuming the "cheat" is changing a decision made prior to the random call, another option (depending on how linear the game is) could be to go back to RenPy's rollback-compatible random and combine it with fixed rollback[1], which would allow rollback but not changing the decision/bet already made. ...
by strayerror
Sat Feb 15, 2020 7:18 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Proper way of using classes
Replies: 7
Views: 349

Re: Proper way of using classes

I'm a little confused by this thread, so please disregard if I'm way off base here. The tl;dr is in bold . ;) Firstly, the original post does (at least at the time of reading) create an instance of the Time class in the final line of the first block. While - as Kia correctly points out - time is a m...
by strayerror
Fri Feb 14, 2020 1:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Create an animation with time parameters
Replies: 6
Views: 649

Re: Create an animation with time parameters

as runner is effectively naming what's displayed for Ren'Py's benefit, so that when you do the next show ... as runner it's replaced, rather than being shown along side or on top of it. runner in this instance is just a name I picked for the purposes of the demo, it could be anything that's not con...
by strayerror
Wed Feb 12, 2020 9:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Create an animation with time parameters
Replies: 6
Views: 649

Re: Create an animation with time parameters

I believe the most direct equivalent of what you're asking for would be something like: transform run(t): "images/001.jpg" t "images/002.jpg" t "images/003.jpg" t repeat label start: show expression run(.3) as runner j "Hi" show expression run(.1) as runner j "fast" return
by strayerror
Tue Jan 28, 2020 9:56 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved] An issues with narrator.add_history - doesn't register values of variables
Replies: 8
Views: 317

Re: [solved] An issues with narrator.add_history - doesn't register values of variables

Because it seems like it may be of interest, here's a brief explanation of why this happens (and even why it's not considered a bug). Hope you find it helpful and/or interesting. :) If you're using the default history screen found in the screens.rpy file created when starting a project, then substit...
by strayerror
Tue Jan 28, 2020 6:49 am
Forum: Ren'Py Questions and Announcements
Topic: Save/Load screen exception that is carrying over from previous versions
Replies: 6
Views: 311

Re: Save/Load screen exception that is carrying over from previous versions

This reads like a player entering a custom save name containing interpolation that's not getting sanitised correctly by the game, resulting in the interface trying to substitute the [Epic] part. Overload-52 if you're a player, then the reason your reset didn't work is that because it's the name of y...
by strayerror
Mon Jan 27, 2020 8:16 am
Forum: Ren'Py Questions and Announcements
Topic: ATL sprite crossfade?
Replies: 6
Views: 343

Re: ATL sprite crossfade?

If the new image footprint is identical or smaller, and the old image is completely opaque then you can potentially just skip the on replace part so that the new image "pops-in" while obscured by the old as soon as it's used with show , and rely on the on replaced behaviour to fade out the old image...
by strayerror
Mon Jan 20, 2020 2:51 pm
Forum: Ren'Py Questions and Announcements
Topic: How to 'stop' game when I show player interactivemap?
Replies: 7
Views: 307

Re: How to 'stop' game when I show player interactivemap?

You don't need a Return() that way, you can simply Hide() as action. That doesn't require the need to directly hide the screen. Anyway, I suppose that button is there to actually show somethingm, probably that map screen... Who knows XD. Unfortunately using Hide (and removing the hide screen line c...
by strayerror
Sun Jan 19, 2020 11:38 pm
Forum: Ren'Py Questions and Announcements
Topic: How to 'stop' game when I show player interactivemap?
Replies: 7
Views: 307

Re: How to 'stop' game when I show player interactivemap?

You can use screenlang's modal True to achieve this effect. If we use the screen to intercept interactions similar to the suggestion by gas , but use show screen rather than call screen we're able to display it overlaid on dialogue instead of outright replacing it. The caveat to this approach is tha...
by strayerror
Mon Jan 13, 2020 5:10 am
Forum: Ren'Py Questions and Announcements
Topic: Screen button click not registering?
Replies: 4
Views: 283

Re: Screen button click not registering?

Yeah, that's weird. Don't know what's up. That said, it appears you can bypass the problem by using SetDict, if that's all you needed. Thanks! Using SetDict does cover this case, but reading the code doesn't seem to yield any hint as to why one works and the other does not. :/ You call the screen. ...