Search found 35 matches

by abeplaga
Wed Jan 19, 2022 11:30 am
Forum: Ren'Py Questions and Announcements
Topic: An aaction that activates or deactivates auto-forward
Replies: 4
Views: 389

An aaction that activates or deactivates auto-forward

Hi, I see that there's a value called preferences.afm_enable that activates auto-forward (https://www.renpy.org/doc/html/preferences.html). I would like to deactivate the auto-forward (if the player has previously activated it) when entering a screen, but I can't get it. I have tried this with some ...
by abeplaga
Fri Jun 19, 2020 4:42 am
Forum: Ren'Py Questions and Announcements
Topic: How to have two scrollbars of different designs?
Replies: 3
Views: 336

Re: How to have two scrollbars of different designs?

https://www.renpy.org/doc/html/style_properties.html https://www.renpy.org/doc/html/style_properties.html#bar-style-properties You just define different styles and use that style on each bar Yeah, I read that before to create the thread and now too. I still don't know how to apply styles on a scrol...
by abeplaga
Thu Jun 18, 2020 8:40 pm
Forum: Ren'Py Questions and Announcements
Topic: How to have two scrollbars of different designs?
Replies: 3
Views: 336

How to have two scrollbars of different designs?

Hi! I have two viewports with a lot of text so I want a scrollbars (well, two because two viewports) but I would like to know if I can put a different design in each viewport... and how? After the design, I have tried and researched the way toa dd them to the code, and I have managed to change the d...
by abeplaga
Thu Jun 18, 2020 1:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible a texbutton with two colors? Doesn't work the hover color!
Replies: 3
Views: 388

Re: Is it possible a texbutton with two colors? Doesn't work the hover color!

Not sure if there's a good way to do this but you could use the hover unhover to set a text variable default button_text = "{color=#ff5a7d}DON'T{/color}" textbutton "Please, [button_text] choose me" action Return("continue") style "colorfulbutton": hovered Se...
by abeplaga
Wed Jun 17, 2020 4:52 pm
Forum: Ren'Py Questions and Announcements
Topic: Is it possible a texbutton with two colors? Doesn't work the hover color!
Replies: 3
Views: 388

Is it possible a texbutton with two colors? Doesn't work the hover color!

Hi, I'm trying to create a textbutton with two colors but I can't! :( I specify one color in a style, but when putting a second color with a tag on the text... it doesn't work well. The second color is applied on idle, but not when hover, changing all the text except the second color part with its i...
by abeplaga
Wed Jan 08, 2020 8:41 pm
Forum: Ren'Py Questions and Announcements
Topic: How to avoid transparent edges when vpunch?
Replies: 4
Views: 583

Re: How to avoid transparent edges when vpunch?

Or simply leave you images as they are. To get rid of the transparency squares in your released game go to options.rpy and change define config.developer = "auto" to define config.developer = False before building your game distribution. Ah, thank you! If the build doesn't have that trans...
by abeplaga
Sun Jan 05, 2020 11:33 pm
Forum: Ren'Py Questions and Announcements
Topic: How to avoid transparent edges when vpunch?
Replies: 4
Views: 583

How to avoid transparent edges when vpunch?

When I do a vpunch the screen shakes but on lower and upper edges appears a white line with little grey squares, which I think it is the transparent background of renpy.

Is there any way to prevent it from appearing?

Image
^ Wait a second to look at the bottom...
by abeplaga
Wed Jan 01, 2020 7:45 pm
Forum: Ren'Py Questions and Announcements
Topic: is there a function that counts the played time per session?
Replies: 5
Views: 727

Re: is there a function that counts the played time per session?

There isn't one natively (not as far as I know anyway) You could just reset the game_runtime wherever you want though with renpy.clear_game_runtime(), e.g. label splashscreen(): $ renpy.clear_game_runtime() return I tried it with but doesn't work. Maybe because runtime starts when the player loads ...
by abeplaga
Tue Dec 31, 2019 6:15 am
Forum: Ren'Py Questions and Announcements
Topic: is there a function that counts the played time per session?
Replies: 5
Views: 727

Re: is there a function that counts the played time per session?

philat wrote: Tue Dec 31, 2019 12:37 am get_game_runtime IS per session.
I've done tests and no, it starts counting from the moment you enter the script and stays stored in the saves.

I ask for a function that counts from the moment the player executes the .exe of the game and always starts at 0.
by abeplaga
Mon Dec 30, 2019 11:12 pm
Forum: Ren'Py Questions and Announcements
Topic: is there a function that counts the played time per session?
Replies: 5
Views: 727

is there a function that counts the played time per session?

Hi! I just discovered that there is a variable that counts the game time ( renpy.get_game_runtime ), and I wondered if there is a variable that stores how long a game has been running in a play session. In other words, that count the time everytime the player runs the executable of the game. If ther...
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: 909

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

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

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

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

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.