Search found 154 matches

by strayerror
Sat May 11, 2019 12:50 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] FontGroup: Striving for consistent vertical spacing
Replies: 4
Views: 404

Re: FontGroup: Striving for consistent vertical spacing

Brilliant! Thanks Tom, that solves the issue completely! Very cool feature :D
by strayerror
Fri May 10, 2019 4:19 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] FontGroup: Striving for consistent vertical spacing
Replies: 4
Views: 404

Re: FontGroup: Striving for consistent vertical spacing

Unfortunately that's not what the vspace tag is designed to do. It's used for breaking lines with a set amount of spacing. The problem I'm describing occurs when text flows over multiple lines (wraps) without manual line breaking.
by strayerror
Thu May 09, 2019 2:28 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] FontGroup: Striving for consistent vertical spacing
Replies: 4
Views: 404

[Solved] FontGroup: Striving for consistent vertical spacing

Players are permitted to name their own character, which then makes it into various pieces of dialogue via interpolation. The problem I'm having is that despite using a font group (see below) the spacing between wrapping lines can get thrown off pretty significantly when mixing characters taken from...
by strayerror
Wed May 08, 2019 7:37 am
Forum: Ren'Py Questions and Announcements
Topic: Alpha Image outline
Replies: 4
Views: 345

Re: Alpha Image outline

Oooh, hadn't thought of that! Gave it a quick try, but unfortunately because the focal point is the centre, the result gives varying results on edges based on how far from the centre they are. For some smaller images the result is OK as the variance is minimal, but for certain other and especially l...
by strayerror
Mon May 06, 2019 10:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Alpha Image outline
Replies: 4
Views: 345

Re: Alpha Image outline

Alas, I tried such an approach and while it gives limited success for images with transparency on the outermost edges, it doesn't work well for images where transparency regions are closer to the centre than opaque regions. The result is more that of a shadow cast from a central light source, so any...
by strayerror
Sun Apr 21, 2019 1:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Using variables in dialog that need captialisation [solved]
Replies: 6
Views: 713

Re: Using variables in dialog that need captialisation

Oooh, totally forgot about tags, that could work, thanks for the suggestions!
by strayerror
Fri Apr 19, 2019 9:21 am
Forum: Ren'Py Questions and Announcements
Topic: Using variables in dialog that need captialisation [solved]
Replies: 6
Views: 713

Re: Using variables in dialog that need captialisation

Thanks both, unfortunately say_menu_text_filter is called prior to the substitutions, so that option doesn't quite work :( I also realised that this issue is actually far more complex than first though as it really applies to the start of any sentence, even those that start in the middle of a line. ...
by strayerror
Thu Apr 18, 2019 2:11 pm
Forum: Ren'Py Questions and Announcements
Topic: Using variables in dialog that need captialisation [solved]
Replies: 6
Views: 713

Using variables in dialog that need captialisation [solved]

eileen 'Hello [nickname]!" player "Hi, Eileen!" eileen "[nickname]! You're always so cheerful, what's you secret?" In cases where nickname is a proper noun ( Bob , for example) this works just fine, however sometimes nickname will not be a proper noun ( stranger for a contrived example). In the sec...
by strayerror
Tue Apr 02, 2019 2:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Alpha Image outline
Replies: 4
Views: 345

Alpha Image outline

Hi, not sure if this is possible but I'd like to be able to put a border around an image similar to how it's possible to do with text. However rather than having the border at the image bounds, I'd like to have it follow the edges of the alpha mask. I had a quick play trying to use the new Blur mani...
by strayerror
Mon Mar 25, 2019 1:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Script running in background
Replies: 3
Views: 326

Re: Script running in background

Aha, in that case, I'm not sure if it's the best way, but you could use a custom transform to publish the guard's direction to a variable: layeredimage guard: 'guard.png' default guard_direction = 1 init python: def guard_sweep(trans, st, at): global guard_direction # publish direction globally guar...
by strayerror
Sun Mar 24, 2019 12:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Script running in background
Replies: 3
Views: 326

Re: Script running in background

You could use a transform to do this:

Code: Select all

layeredimage guard:
    "guard.png"

transform guard_anim:
    pause 2.0
    xzoom -1
    pause 2.0
    xzoom 1
    repeat

label guardScript:
    show guard at guard_anim
    'end'
    return
by strayerror
Sat Mar 23, 2019 12:04 am
Forum: Ren'Py Questions and Announcements
Topic: Question about a command found in the Tutorial
Replies: 3
Views: 343

Re: Question about a command found in the Tutorial

It's a custom ATL statement used to give a cleaner interface to a complex screen, all that is set up in 01example.rpy if you want a read :)
by strayerror
Wed Mar 20, 2019 7:37 am
Forum: Ren'Py Questions and Announcements
Topic: How do I make a script always running in the background?
Replies: 2
Views: 304

Re: How do I make a script always running in the background?

This exists: https://www.renpy.org/doc/html/config.h ... c_callback

There are other (more pythonic) ways to do what you seek, but this is the most obvious "Ren'Py" way to do it, afaik.
by strayerror
Tue Mar 19, 2019 2:24 pm
Forum: Ren'Py Questions and Announcements
Topic: Character say a following when player inputs characters names.
Replies: 4
Views: 321

Re: Character say a following when player inputs characters names.

This should do what you're looking for. It uses a sub-label (notice the label name starts with a dot) to jump back to the prompt each time the user enters the disallowed name. label getting_to_know_you: f "Oh! i forgot your name, what was it again?" label .prompt_for_name: $ name = renpy.input("What...
by strayerror
Sun Mar 17, 2019 2:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Animated buttons
Replies: 5
Views: 421

Re: Animated buttons

The button widget is addable/composable, so it's possible to place several layers in a single button as desired. There are two examples below, one self sizes the button/clickable area using the button_base image ( btn_autosized ) and the other allows the button to be sized manually. Lots of options ...