Search found 302 matches

by m_from_space
Sat Jul 23, 2022 7:06 am
Forum: Ren'Py Questions and Announcements
Topic: Paths/Choices
Replies: 5
Views: 351

Re: Paths/Choices

Code: Select all

$ do_susan = not do_susan
The $ was missing there. It's a line of Python code.
by m_from_space
Sat Jul 23, 2022 7:05 am
Forum: Ren'Py Questions and Announcements
Topic: Custom dialogue boxes not being cleared when scene or menu statements are used
Replies: 19
Views: 609

Re: Custom dialogue boxes not being cleared when scene or menu statements are used

Glad to hear it works out. And yes, rollback is weird anyway, so. :) Wouldn't allow my players to roll back. I like that you provided this code summary.
by m_from_space
Fri Jul 22, 2022 3:36 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Play the voice's MC based on their gender using Renpy's Automatic Voice function.
Replies: 16
Views: 659

Re: Play voice's MC based on their gender.

I actually did think of another idea-- what about using a character callback ? Something like: I'm not sure. Isn't Renpy then trying to both play the auto-voice for MC and the genderVoice? I don't know about the timing of those events in callback in relation to playing a voice. But you may want to ...
by m_from_space
Thu Jul 21, 2022 3:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Custom dialogue boxes not being cleared when scene or menu statements are used
Replies: 19
Views: 609

Re: Custom dialogue boxes not being cleared when scene or menu statements are used

Thanks for the testing grounds, that was helpful. Still took some time to figure out how to fix those annoying little flashes. But as far as I can see, I have a solution. No need for special treatment of "scene" or "menu" necessary. # tells us if the background should now fade out (triggered via say...
by m_from_space
Thu Jul 21, 2022 1:45 pm
Forum: Ren'Py Questions and Announcements
Topic: I would like to display a confirm menu when I click "x" in the game window.
Replies: 4
Views: 219

Re: I would like to display a confirm menu when I click "x" in the game window.

I don't know if that's possible.

But ask yourself this: What if your player is really involved in your game, suddenly mom or dad enters the room and they just want to click that x, without a confirmation to pop up? ;-)
by m_from_space
Thu Jul 21, 2022 1:40 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Play the voice's MC based on their gender using Renpy's Automatic Voice function.
Replies: 16
Views: 659

Re: Play voice's MC based on their gender.

The fun thing about encountering a variable that starts with "_" in Python is, that there is this programmer's convention, that you don't use them out of their context. The underscore marks them as "private", although in Python you cannot really mark something as private (like in C++). :D It's defin...
by m_from_space
Thu Jul 21, 2022 1:31 pm
Forum: Ren'Py Questions and Announcements
Topic: Adding Text Box opacity Properties to "Reset to Defaults"
Replies: 11
Views: 453

Re: Adding Text Box opacity Properties to "Reset to Defaults"

yoyuchi wrote:
Thu Jul 21, 2022 12:02 pm
Can I ask you questions about other things if you don't mind? I think it will be a great help, so I would like sincerely ask for it.
You don't have to ask if you you can ask questions here. Others might answer, too.
by m_from_space
Thu Jul 21, 2022 5:48 am
Forum: Ren'Py Questions and Announcements
Topic: Custom dialogue boxes not being cleared when scene or menu statements are used
Replies: 19
Views: 609

Re: Custom dialogue boxes not being cleared when scene or menu statements are used

I just now set up something that simulates your game and now understand what you mean by that small flash of the background whenever you make a scene statement. My workaround for that is the following. def charBg(st, at): global say_who if say_who == "hide": return Null(), None if say_who is None or...
by m_from_space
Thu Jul 21, 2022 4:55 am
Forum: Ren'Py Questions and Announcements
Topic: Custom dialogue boxes not being cleared when scene or menu statements are used
Replies: 19
Views: 609

Re: Custom dialogue boxes not being cleared when scene or menu statements are used

It's a bit hard for me to really help out without having your base code and looking at what's going on while those statements happen tbh. You also mention "transitions", while you don't have a transition just writing "scene". So I assume you are talking about "with Fade(...)" statements? Have you tr...
by m_from_space
Thu Jul 21, 2022 4:14 am
Forum: Ren'Py Questions and Announcements
Topic: Custom dialogue boxes not being cleared when scene or menu statements are used
Replies: 19
Views: 609

Re: Custom dialogue boxes not being cleared when scene or menu statements are used

How about changing say_who right before the scene statement? Just change it to whoever is speaking after that. ("None" for narrator/generic and the names of the other characters for everybody else.)

Code: Select all

m "words"
$ say_who = None
scene bg sidewalk
"i am the narrator"
by m_from_space
Thu Jul 21, 2022 12:51 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Play the voice's MC based on their gender using Renpy's Automatic Voice function.
Replies: 16
Views: 659

Re: Play voice's MC based on their gender.

I don't claim to be more than a novice at either python or ren'py, but if you want a quick solution you can access the voice tag directly. Building off of what you've already been working with: Very interesting, but say, where is this _voice variable coming from? I can't find anything about it in t...
by m_from_space
Wed Jul 20, 2022 2:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Custom dialogue boxes not being cleared when scene or menu statements are used
Replies: 19
Views: 609

Re: Custom dialogue boxes not being cleared when scene or menu statements are used

define narrator = Character(None) define generic = Character("generic", namebox_background = Frame("Generic_nbox", gui.namebox_borders, tile=gui.namebox_tile, xalign=gui.name_xalign)) define am = Character("Alex\'s Mom", kind=generic) But, like, I don't even remember how the "None" thing even works...
by m_from_space
Wed Jul 20, 2022 1:40 pm
Forum: Ren'Py Questions and Announcements
Topic: Different sounds on "check" textbuttons
Replies: 4
Views: 278

Re: Different sounds on "check" textbuttons

Whoops, no it's my fault:

Code: Select all

if preferences.skip_unseen:
    activate_sound "audio/effects/sound_01.ogg"
else:
    activate_sound "audio/effects/sound_02.ogg"
by m_from_space
Wed Jul 20, 2022 5:04 am
Forum: Ren'Py Questions and Announcements
Topic: Custom dialogue boxes not being cleared when scene or menu statements are used
Replies: 19
Views: 609

Re: Custom dialogue boxes not being cleared when scene or menu statements are used

You mentioned your black narrator box, but I have no idea what part of your code is showing a black box. Figure out how it comes into play! :)
by m_from_space
Wed Jul 20, 2022 3:24 am
Forum: Ren'Py Questions and Announcements
Topic: Custom dialogue boxes not being cleared when scene or menu statements are used
Replies: 19
Views: 609

Re: Custom dialogue boxes not being cleared when scene or menu statements are used

I just tried out making this functionality possible just using a single screen and using one line inside the say screen. And it seems to work, also the animation effect doesn't change when the same character speaks multiple lines. Don't know about other effects. But the background will go away whene...