Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

Hey there! I really like the font effects you have made. Is it possible to be able to use the font effects for text used outside of the textbox when it's disabled while not losing predefined properties? I currently am using a None character (the narrator) to display text on a certain part of the screen. When I initialized the character, I used specific properties to change the texts position, text wrapping, color, etc. However, these properties seem to be overwritten when I use one of the font effect tags, like sc. Is there anyway I can use these properties in conjunction with the font effects?

Defined Character code:

define angry_thoughts = Character(None, what_xpos= 50, what_text_align=0.5, image="nicholai",sideimg_yalign=1.0, sideimg_xalign=1.0, what_ypos= -740, what_color= "#ffffff", what_xmaximum = 200, what_size= 1900, what_outlines= [(2, "#000000")], what_font="fonts/DisgustingBehavior-AZrA.ttf",window_background= None)

Example Text Usage:

angry_thoughts yelling "{sc=10}No! You just don't want me to be happy!{/sc}"

Yeah, the kinetic text tags are a displayable being shown as part of an overall text displayable, but that text displayable doesn't know to pass it's style information down to the kinetic text tag's text. My solution to this was defining a style with all the properties you want, and then using the {=style} tag (https://www.renpy.org/doc/html/text.html#style-text-tags) INSIDE the kinetic text tag to carry that information in. While going through the text it's given, my text tags will try to keep track of other tags inside it and apply them to their text. So you'd want to do something like 

style narr_text_style:
    color "#fff"
    outlines [(2, "#000000")]
    size 1900
    font "fonts/DisgustingBehavior-AZrA.ttf"
"{sc=10}{=narr_text_style}{outlines}No! You just don't want me to be happy!{/sc}"

Not sure the style tag applies all of that attributes, especially outlines, or if that will necessarily work entirely. Though that's the general way I made it work.

While looking into this though I did learn that renpy now has some of this stuff built in. https://www.renpy.org/doc/html/textshaders.html So if it's not working it might be worth using their jitter instead.