Search found 1909 matches

by philat
Sun Mar 19, 2023 8:42 pm
Forum: Ren'Py Questions and Announcements
Topic: Leveling System in Tetris Clone Not Working
Replies: 6
Views: 444

Re: Leveling System in Tetris Clone Not Working

I mean, a) I can't tell what your code actually is without indentation (please use the [ code ] function), and b) your check is elif self.stageclear2, not if, so if it's on the same level as if self.end it wouldn't run and if it's indented should throw an error.
by philat
Fri Mar 17, 2023 11:29 pm
Forum: Ren'Py Questions and Announcements
Topic: Leveling System in Tetris Clone Not Working
Replies: 6
Views: 444

Re: Leveling System in Tetris Clone Not Working

Just change the order so it checks for the last level first - e.g.,

if self.stageclear2: # do stuff
elif self.stageclear: # do stuff
by philat
Tue Mar 07, 2023 12:09 am
Forum: Ren'Py Questions and Announcements
Topic: How to make calendar.month() show in renpy properly?
Replies: 2
Views: 317

Re: How to make calendar.month() show in renpy properly?

That seems like a monospace font thing more than anything else. Although I suppose I haven't actually run it. Yeah, it's aligned if you use a monospace font (like Courier).
by philat
Tue Mar 07, 2023 12:07 am
Forum: Ren'Py Questions and Announcements
Topic: Using Python dictionaries in Ren'Py [Solved]
Replies: 6
Views: 7057

Re: Using Python dictionaries in Ren'Py [Solved]

At a certain point, wouldn't you simply use straight python instead of trying to fiddle with ren'py interpolation? (e.g., renpy.say("Hero's HP: {}".format(hero[tempstring])) if you really need it to be a say statement, but realistically this seems like the kind of thing that would be in UI...
by philat
Mon Feb 27, 2023 10:10 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make a "proper" splash screen :)
Replies: 10
Views: 734

Re: How to make a "proper" splash screen :)

Huh, never realized that presplash existed separately from splashscreen (for PC, anyway, I knew Android presplash is a thing because Android is usually slower). That said, in most ren'py games, the game will load so fast the presplash will probably blink in and out. In gaming, I always thought the s...
by philat
Mon Feb 27, 2023 8:21 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] How to customize save/load screens (and remove from navigation screen)?
Replies: 10
Views: 509

Re: How to customize save/load screens (and remove from navigation screen)?

Yeah, the structure of the default gui is not... particularly transparent, imo. Long story short, you should build your save/load screens to standalone (by default, they both use the file_slots screen, which in turn uses game_menu, and if you don't understand the structure (which is fine, not a dig,...
by philat
Sun Feb 26, 2023 9:02 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make a "proper" splash screen :)
Replies: 10
Views: 734

Re: How to make a "proper" splash screen :)

Basically it sounds like OP is asking for the Adobe creative suite or Microsoft Office pop ups - this is not, however, how splash screens generally work in games and it's not supported by ren'py natively, afaik.
by philat
Wed Feb 22, 2023 6:02 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Change minimum ysize or spacing of entries in history screen, while gui.history_height = None?
Replies: 2
Views: 280

Re: Change minimum ysize or spacing of entries in history screen, while gui.history_height = None?

If you're using the default history screen (which it appears you are), honestly, my first instinct would be to do this the quick and dirty way: screen history(): tag menu ## Avoid predicting this screen, as it can be very large. predict False use game_menu(_("History"), scroll=("vpgri...
by philat
Wed Feb 22, 2023 5:34 am
Forum: Ren'Py Questions and Announcements
Topic: Strange bug with timer action [solved]
Replies: 12
Views: 659

Re: Strange bug with timer action

It's not the SetVariable connected to the timer, it's the ones in the buttons.
by philat
Sun Feb 19, 2023 10:44 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Why does my custom screen disappear when I jump?
Replies: 7
Views: 562

Re: Why does my custom screen change when I jump?

That was my bad, meant renpy.random in general and brainfarted. Use whatever works for you.
by philat
Fri Feb 17, 2023 9:49 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Why does my custom screen disappear when I jump?
Replies: 7
Views: 562

Re: Why does my custom screen change when I jump?

Choice in ATL is reevaluated every time the screen refreshes (which is whenever there is an interaction - button presses by default include a new interaction). Use renpy.random.random to pick your randoms and feed them to the screen via parameters.
by philat
Wed Oct 26, 2022 9:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Using a List as a dict value in dialogue
Replies: 2
Views: 354

Re: Using a List as a dict value in dialogue

It's a limitation of square bracket interpolation - you should use renpy.say to use python .format interpolation. $renpy.say(None, "We're going {}!".format(Directions["up"][Invert]) #also do note up should be in quotes That said, not sure this is worth the effort given the simpli...
by philat
Fri Jul 15, 2022 9:36 am
Forum: Ren'Py Questions and Announcements
Topic: Add Sepia Filter To LayeredImage?
Replies: 2
Views: 316

Re: Add Sepia Filter To LayeredImage?

You can use matrixcolor transforms instead of image manipulators now. That said, assuming you would be showing the whole "memory" scene in sepia, wouldn't it be simpler to just filter the whole scene? transform sepia: matrixcolor SepiaMatrix() #https://www.renpy.org/doc/html/matrixcolor.ht...