Search found 84 matches

by laure44
Tue Aug 23, 2022 7:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Dialogue text alignment: justify?
Replies: 2
Views: 362

Re: Dialogue text alignment: justify?

You can use the justify property.
https://www.renpy.org/doc/html/style_pr ... ty-justify

You can use this inside of style say_dialogue in screens.rpy

Code: Select all

style say_dialogue:
    justify True
by laure44
Mon Aug 22, 2022 9:18 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Can you 'add' a movie to a renpy screen?
Replies: 2
Views: 375

Re: Can you 'add' a movie to a renpy screen?

You'll need to use strings.

Code: Select all

    add "wavy_bg"
by laure44
Sun Aug 14, 2022 11:11 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Changing Subpixel default value
Replies: 2
Views: 355

Re: Changing Subpixel default value

PyTom wrote: Sun Aug 14, 2022 9:41 pm

Code: Select all

style default:
    subpixel True
I'm considering making this the default.
Exactly what I was looking for, thank you!!
by laure44
Sun Aug 14, 2022 7:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Character Stats Question [SOLVED]
Replies: 3
Views: 375

Re: Character Stats Question

nice!!! thank you!! also, how do you set max points for certain stats? Pretty much the same way you set the minimum amount of points, like so: textbutton "+": action SetVariable("stat_kindness", stat_kindness+1), SetVariable("available_points", available_points-1) if a...
by laure44
Sun Aug 14, 2022 6:27 pm
Forum: Ren'Py Questions and Announcements
Topic: Character Stats Question [SOLVED]
Replies: 3
Views: 375

Re: Character Stats Question

It can be quite simple to do. You'd need a few variables and a screen. default stat_kindness = 0 default stat_strength = 0 default stat_magic = 0 default available_points = 5 screen Stats(): vbox align(.5,.5): # You can repeat the below for each stat hbox: text "Kindness" null width 30 tex...
by laure44
Sat Aug 13, 2022 3:40 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I show another screen from within an if/then statement in a screen?
Replies: 2
Views: 365

Re: How do I show another screen from within an if/then statement in a screen?

You can do that in the same screen. default show_wrong = True # put that at the beginning of your screen .... if correct: # if correct then show a text then return after 2 seconds text "Correct!" xalign 0.9 yalign 0.5 textbutton "CONTINUE" xalign 0.9 yalign 0.55 action Return() e...
by laure44
Tue Aug 09, 2022 10:55 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Changing Subpixel default value
Replies: 2
Views: 355

[SOLVED] Changing Subpixel default value

I'm using a lot of different transforms (mostly for the camera statement), and all of those use subpixel True . This parameter is set to False by default. But it is quite boring to have a "subpixel True" line written everywhere. I suppose this is not possible, but who knows: is there any w...
by laure44
Tue Aug 02, 2022 8:41 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED]SetVariable() doesn't seem to work for certain cases
Replies: 2
Views: 267

Re: SetVariable() doesn't seem to work for certain cases

In your imagebutton's action, put SetVariable() before any ShowMenu() or Return()

Code: Select all

imagebutton auto "gui/return_%s.png" action SetVariable("current_page", page[1]), SetVariable("entry_def2", "foot"), Return()
by laure44
Tue Aug 02, 2022 12:26 am
Forum: Ren'Py Questions and Announcements
Topic: Variable code for implementing food, water and game overs
Replies: 10
Views: 398

Re: Variable code for implementing food, water and game overs

There's a way to simplify it. You can create a function that will do two things : increase (or decrease) the amount, and then call the check function. This way, you won't need to do too much redundant typing. Short example : def update_water(amount): global stats_water stats_water += amount check_wa...
by laure44
Mon Aug 01, 2022 10:37 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable code for implementing food, water and game overs
Replies: 10
Views: 398

Re: Variable code for implementing food, water and game overs

As I said in my first comment: If you want to make sure the player can't go above a maximum amount, you can do this: init python: def check_water(): if stats_water <= 0: renpy.jump("GameOver1") elif stats_water > stats_water_max: # or you could put a number instead if you don't want to use...
by laure44
Mon Aug 01, 2022 10:21 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable code for implementing food, water and game overs
Replies: 10
Views: 398

Re: Variable code for implementing food, water and game overs

lsf22 wrote: Mon Aug 01, 2022 10:05 pm For some reason it's not jumping to the game over label once the water stat hits 0 or below it.
That's quite strange, as it works perfectly for me. Could you show your code please?
by laure44
Mon Aug 01, 2022 9:52 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] How to add a screen to the list, inside which you need to pass an argument?
Replies: 5
Views: 349

Re: How to add a screen to the list, inside which you need to pass an argument?

If I understand correctly, what you want is to show all of those screens at once? If that's the case, you could use use in a single screen instead. Like so: screen all_overlays(): use statMenuMainBtn use statsNames use showTime use show_stats(Anna) label start: show screen all_overlays
by laure44
Mon Aug 01, 2022 9:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Variable code for implementing food, water and game overs
Replies: 10
Views: 398

Re: Variable code for implementing food, water and game overs

You're going to have to write it like so: init python: def check_water(): if stats_water <= 0: renpy.jump("GameOver1") renpy.jump is the python equivalent for the jump statement. You can't use pure renpy statements in python blocks, this is why python equivalents exist. https://www.renpy.o...
by laure44
Fri Jul 29, 2022 9:24 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Porting Pygame to a CDD (Collision Detection)
Replies: 4
Views: 1207

Re: Porting Pygame to a CDD (Collision Detection)

I believe this is a "normal" behavior, but there are some workarounds for that. For instance, you could do this: class FeedtheDragonDisplayable(renpy.Displayable): def __init__(self): renpy.Displayable.__init__(self) self.key_pressed = None # This will store which key is held down # ... de...
by laure44
Thu Jul 28, 2022 4:18 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] I need that the player can't skip the movie
Replies: 14
Views: 616

Re: I need that the player can't skip the movie

What didn't work, exactly? Did you get an error? Or an unwanted result maybe?