Search found 25 matches

by abeplaga
Sat Oct 05, 2019 8:25 am
Forum: Ren'Py Questions and Announcements
Topic: Drag&Drop: how to know coordenates of drop position?
Replies: 6
Views: 458

Re: Drag&Drop: how to know coordenates of drop position?

...is it possible to get the X and Y values of the position where a drag object has been drop? ... Extending philat's answer, if you dragged and dropped the object somewhere onscreen (and not over droppable object), then you can store its coordinates like init python: def detective_dragged(drags, d...
by abeplaga
Fri Oct 04, 2019 9:57 pm
Forum: Ren'Py Questions and Announcements
Topic: Drag&Drop: how to know coordenates of drop position?
Replies: 6
Views: 458

Re: Drag&Drop: how to know coordenates of drop position?

Except for d, all of the parameters are available as fields (with the same name) on the Drag object. In addition, after the drag has been rendered, the following fields become available: x, y The position of the Drag relative to its parent, in pixels. w, h The width and height of the Drag's child, ...
by abeplaga
Fri Oct 04, 2019 9:16 pm
Forum: Ren'Py Questions and Announcements
Topic: Drag&Drop: how to know coordenates of drop position?
Replies: 6
Views: 458

Drag&Drop: how to know coordenates of drop position?

Hello everybody. I have a question, I do not know if it is a silly doubt but I would like to solve it because I wanna sleep tonight :p Ok, so... Here I go: is it possible to get the X and Y values of the position where a drag object has been drop? I want to save that information in a few variables b...
by abeplaga
Fri Jun 28, 2019 3:03 pm
Forum: Ren'Py Questions and Announcements
Topic: How to drag text? (and other question about drag&drog)
Replies: 1
Views: 503

How to drag text? (and other question about drag&drog)

Hi! On a temporal screen I'm trying to drag a image with some text over it. I read the documentation but... I can't know if I'm doing well. I use the code of the example of this https://www.renpy.org/doc/html/drag_drop.html#examples I created a window with an image and a text but it doesn't work, ca...
by abeplaga
Mon Jun 10, 2019 7:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Change position of an existing screen with Use statement
Replies: 2
Views: 475

Re: Change position of an existing screen with Use statement

Remix wrote:
Sun Jun 09, 2019 1:15 pm
You could pass parameters into the screen:

Code: Select all

screen map( xalign=1.0, xanchor=1.0 ):
    vbox:
        xalign xalign
        xanchor xanchor
        # buttons

...
    use map # right side

    use map(0.0, 0.0) # moved to left side
I don't know that! Thanks, I'll try.
by abeplaga
Sun Jun 09, 2019 12:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Change position of an existing screen with Use statement
Replies: 2
Views: 475

Change position of an existing screen with Use statement

Hi, I'm trying to do the following, but I can't get it. I have created a map screen that shows many images and buttons on the right side of the game, but I have thought that sometimes it can be shown on the left but I don't know if I can use the existing screen for it or make a new one by changing t...
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: 444

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: 252

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: 252

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: 252

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: 252

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: 161

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: 161

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: 160

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: 156

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...