Search found 302 matches

by m_from_space
Tue Jul 19, 2022 2:54 pm
Forum: Ren'Py Questions and Announcements
Topic: Different sounds on "check" textbuttons
Replies: 4
Views: 278

Re: Different sounds on "check" textbuttons

There are different ways of doing it, some examples following. You don't have to write the full file name by the way, if it's a unique name. Renpy automatically detects audio files inside the "audio" folder and puts them into the audio object, stripping the extension (see second example). textbutton...
by m_from_space
Tue Jul 19, 2022 12:19 pm
Forum: Ren'Py Questions and Announcements
Topic: How to insert a non-breaking space?
Replies: 2
Views: 253

Re: How to insert a non-breaking space?

You have to use a "non-breaking space" character instead of the space. I don't think Renpy supports a no-break text-tag.

Try using unicode symbol U+00A0. It works for me, but depends on the font you are using. Sometimes a weird character might appear.

Code: Select all

$ name = "De\u00A0Clercq"
by m_from_space
Tue Jul 19, 2022 11:52 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 are not really showing your own dialogue window, but just an image on the "screens" layer that's associated with the speaking character. (For the record, I have absolutely no idea why "renpy.restart_interaction()" is even there or what it does, but I'm afraid to touch it.) "Restarts the current ...
by m_from_space
Tue Jul 19, 2022 10:26 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.

Sorry, as I said, I didn't test it and didn't know the timing of those function calls and that _get_voice_info triggers a call of your own function. So I don't really know what easy way there is to determine who is speaking at the moment. Maybe it's easy, but since I never used voices like this, I d...
by m_from_space
Tue Jul 19, 2022 10:21 am
Forum: Ren'Py Questions and Announcements
Topic: Is there any difference between declaring a class instance through a Character?
Replies: 5
Views: 234

Re: Is there any difference between declaring a class instance through a Character?

define a = Character([Anna.name]) define a = Character(Anna.name) and I get exception every time NameError: name 'Anna' is not defined Sorry, yes. I was wrong. Because the function Character expects a string. If you want to do it like this, you just need to add "dynamic=True". This way you could al...
by m_from_space
Tue Jul 19, 2022 2:42 am
Forum: Ren'Py Questions and Announcements
Topic: Is there any difference between declaring a class instance through a Character?
Replies: 5
Views: 234

Re: Is there any difference between declaring a class instance through a Character?

Putting things inside brackets is Renpy related and only intended to make dialogue text dynamic. So something like: a "Hey my name is [Anna.name], what's yours?" Of course you can use it inside screens, too, if necessary. But other than that, just don't use it. But since you know Anna's name (it's A...
by m_from_space
Tue Jul 19, 2022 2:25 am
Forum: Ren'Py Questions and Announcements
Topic: CTC icon is located underneath text box.
Replies: 4
Views: 388

Re: CTC icon is located underneath text box.

So @renpytom stated, that your say() screen has to be at the default zorder of 0 (which is like setting no zorder). Then it works as intended.
by m_from_space
Tue Jul 19, 2022 2:06 am
Forum: Ren'Py Questions and Announcements
Topic: Paths/Choices
Replies: 5
Views: 351

Re: Paths/Choices

What do you mean you would "love for these choices to be able to made at the same time"? What do you mean by "one machine per choice"? If you don't want a choice to be available after the player picked it, then use a variable to determine if it was already chosen. I like using lists, but you can als...
by m_from_space
Tue Jul 19, 2022 1:50 am
Forum: Ren'Py Questions and Announcements
Topic: Is there any difference between declaring a class instance through a Character?
Replies: 5
Views: 234

Re: Is there any difference between declaring a class instance through a Character?

define a = Character('Anna') But I can also do this: 1. define a = Character('[Anna.name]') 2. $ a = Anna.name 3. define a = '[Anna.name]' Is there any difference at all? Or is it just a display of some name? 1. Here you create a Character() object with the name of the character being '[Anna.name]'...
by m_from_space
Mon Jul 18, 2022 3:06 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"

By the way, I don't recommend using a label for just changing variables. Labels are used for the flow of the game / story, not for managing stuff. Write a python function instead: init python: def resetToDefaults(): global _preferences, persistent _preferences.transitions = 2 # All transitions on _p...
by m_from_space
Mon Jul 18, 2022 2:55 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"

I don't think that error refers to the code I gave you. When exactly does it happen? Looks like it is about your bar. Did it work before? Make sure the variable "persistent.dialogueBoxOpacity" is created in the init phase, when it is not known already: init python: if persistent.dialogueBoxOpacity i...
by m_from_space
Sun Jul 17, 2022 5:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Textbuttons (and probably other buttons) appear inside a black box
Replies: 6
Views: 304

Re: Textbuttons (and probably other buttons) appear inside a black box

I think this has to do with frames. When you go into your "game/gui" folder you will find a black image named "frame.png". This is the default background for every "frame" inside the game. Frames are used for a lot of stuff. Whenever you have a frame written inside your code, make sure to add "backg...
by m_from_space
Sun Jul 17, 2022 3:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Webm Video transition has checkered background
Replies: 1
Views: 222

Re: Webm Video transition has checkered background

Just put a black background behind first is my suggestion.

Code: Select all

label start:
    scene black
    show scene_1_animation_1a
    pause
    scene black
    show scene_1_animation_1b
    pause
by m_from_space
Sun Jul 17, 2022 3:11 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"

Oh now I know what your problem is, I didn't realize what you were trying to do. You accidentally added an underscore in front of "persistent". The persistent object does not have an underscore. Just write: label ResetToDefaults: python: _preferences.transitions = 2 # All transitions on _preferences...
by m_from_space
Sun Jul 17, 2022 3:07 pm
Forum: Ren'Py Questions and Announcements
Topic: [Help] Quick menu "skip" does not change from "hover" to "selected_idle".
Replies: 4
Views: 265

Re: [Help] Quick menu "skip" does not change from "hover" to "selected_idle".

I tried to apply script you wrote, but mine is tied to hbox. I wish I could see your quick menu script, but it would be an impossible request. This is basically my whole quick_menu, I just removed stuff that adds other functionality. Your "hbox" isn't really a big deal, just put it in front of it. ...