Search found 34 matches

by abeplaga
Tue May 28, 2019 2:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Textbutton with two lines with different align. Is it possible?
Replies: 2
Views: 492

Textbutton with two lines with different align. Is it possible?

Hi everyone. I'm in trouble trying to do the title thing... Hope if you can help me (or if it's possible to do it). I want to make a two line textbutton where the first line is aligned to the leftand the second line is aligned to the right, but I don't know how to do it! :oops: I suppose it'll be so...
by abeplaga
Tue Apr 02, 2019 8:34 pm
Forum: Ren'Py Questions and Announcements
Topic: How to loop a track inside a MusicRoom?
Replies: 6
Views: 377

Re: How to loop a track inside a MusicRoom?

I don't know which version of the music room you're using. Mine starts with these lines: init python: mr = MusicRoom(fadeout=1.0, single_track=False, loop=True) f you set single_track to False, each song will play once and the player will automatically advance to the next track. Set single_track to...
by abeplaga
Sun Mar 31, 2019 7:31 am
Forum: Ren'Py Questions and Announcements
Topic: How to loop a track inside a MusicRoom?
Replies: 6
Views: 377

Re: How to loop a track inside a MusicRoom?

TheMCButterfly wrote:
Sun Mar 31, 2019 4:25 am
I'm pretty sure you can just do

Code: Select all

define audio.tutorial = "music/filename.ogg"


play music tutorial

You can stop the sound with:

Code: Select all


stop music

How can add this to a button? I want to add this loop/no-loop feature to a button.
by abeplaga
Sat Mar 30, 2019 6:33 pm
Forum: Ren'Py Questions and Announcements
Topic: How to loop a track inside a MusicRoom?
Replies: 6
Views: 377

Re: How to loop a track inside a MusicRoom?

https://www.renpy.org/doc/html/audio.html#renpy.music.play Thanks but with this, for I read, stop the music to play a track but I don't want that. I want a button like any audio reproductor: click and when actual track ends, it plays again. You gimme an idea with the renpy.music.play: using music.q...
by abeplaga
Fri Mar 29, 2019 11:04 pm
Forum: Ren'Py Questions and Announcements
Topic: How to loop a track inside a MusicRoom?
Replies: 6
Views: 377

How to loop a track inside a MusicRoom?

Hi everyone! I'm trying to add a botton with the possibility to loop a track of a MusicRoom but I don't get it. I searched the documentation and the only way I found is create a botton whose action is mr.SetLoop(True) but it doesn't work. I think that SetLoop is a loop for all MusicRoom and no for a...
by abeplaga
Fri Mar 29, 2019 5:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Can't align right inside a hbox (inside a vbox) :(
Replies: 3
Views: 224

Re: Can't align right inside a hbox (inside a vbox) :(

Kia wrote:
Thu Mar 21, 2019 2:36 pm
hbox only stretches to the size of items in it, you can try adding "xfill True" to them
Oh... Well, now I know :D

Thank you, it works!
by abeplaga
Thu Mar 21, 2019 12:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Can't align right inside a hbox (inside a vbox) :(
Replies: 3
Views: 224

Can't align right inside a hbox (inside a vbox) :(

Hi, I'm trying to create a small menu with two rows where each has two text buttons, one right aligned and the other to the left but I can't. I have searched the documentation and in several threads, many of them say that with a xalign 1.0 works but not for me and I don't get it. Am I doing somethin...
by abeplaga
Fri Feb 01, 2019 7:37 pm
Forum: Ren'Py Questions and Announcements
Topic: How to loop an array when it ends? Here are my failures...
Replies: 3
Views: 222

How to loop an array when it ends? Here are my failures...

Hi. So I'm testing how works arrays and I want a botton to show one by one the contents of the array and once it reaches the end it will restart (like A, B, C, A, B, C, A, B, C...). With the following code I think that I have created it: I have a counter that shows the content one by one and when I ...
by abeplaga
Tue Jan 29, 2019 12:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to have two different Say Screens?
Replies: 4
Views: 207

Re: Is it possible to have two different Say Screens?

Thank you! How easy it seems now! One question that has come up... In the other Say Screen is it possible to change the size and color of the font without affecting the original Say Screen? It's always easier when you know how :) This is, I think, the easiest way to handle the size and color questi...
by abeplaga
Mon Jan 28, 2019 11:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to have two different Say Screens?
Replies: 4
Views: 207

Re: Is it possible to have two different Say Screens?

Good day! So, I ask about the title. For example, a game with two locations where in one the dialogue box is below and the graphics (characters, background ...) above and in the other location is upside down: the dialog box above and the graphics below. I think it can only be achieved with two diff...
by abeplaga
Mon Jan 28, 2019 2:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible to have two different Say Screens?
Replies: 4
Views: 207

Is it possible to have two different Say Screens?

Good day! So, I ask about the title. For example, a game with two locations where in one the dialogue box is below and the graphics (characters, background ...) above and in the other location is upside down: the dialog box above and the graphics below. I think it can only be achieved with two diffe...
by abeplaga
Mon Oct 22, 2018 12:35 pm
Forum: Ren'Py Questions and Announcements
Topic: With cps, click reveal text dialogue instead of goes to the next?
Replies: 4
Views: 268

Re: With cps, click reveal text dialogue instead of goes to the next?

Sorry, I can't see how what you have works, so cannot say. I can however, see what you're trying to do. Personally, I'd make a screen and add a 99.9% transparent imagebutton that covers the whole screen and has a cut out section where the text box is. Give the imagebutton an action of 'None' or 'Nu...
by abeplaga
Sun Oct 21, 2018 3:14 pm
Forum: Ren'Py Questions and Announcements
Topic: With cps, click reveal text dialogue instead of goes to the next?
Replies: 4
Views: 268

Re: With cps, click reveal text dialogue instead of goes to the next?

By default, it should simply reveal the entire line of dialogue, not skip to the next (unless you click twice) Have you done anything fancy or other editing to config options that may cause this unexpected behaviour? Yes, thank you to say it because I didn't think that maybe it was my fault :oops: ...
by abeplaga
Sat Oct 20, 2018 6:46 pm
Forum: Ren'Py Questions and Announcements
Topic: With cps, click reveal text dialogue instead of goes to the next?
Replies: 4
Views: 268

With cps, click reveal text dialogue instead of goes to the next?

Hi. I changed config.default_text_cps (not very fast but neither slow) because I want a reveal text for my dialogues but I see that when the player clicks, the game pass to next dialogue instead of reveal the actual. Is it possible to prevent that? It's for impatient players or speedreaders that wan...
by abeplaga
Mon Oct 15, 2018 7:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Drag and drop with returning drag to his original position
Replies: 4
Views: 527

Re: Drag and drop with returning drag to his original position

Double post because I found a solution after several trials and errors!

The code of Alex is good but in "if no drop" part it has to add a return

Code: Select all

 if not drop:
            drags[0].snap(my_xpos, my_ypos, 0.1)
            return
And it works! <3 Drag and drop with returning drag, yay!