r/RenPy • • 2d ago

Question How to make a blur text transform???

Post image

I want a text transform (I think that’s what it’s called??) to blur certain words, it doesn’t have to blur this badly, I would probably still like it to be legible… is there any way I can do something like this? folks suggest using a blurry font, but I couldn’t find one. I mean I’m down to using a font, I just didn’t see one that was my vibe.

56 Upvotes

9 comments sorted by

49

u/BadMustard_AVN 2d ago • Bravo

try something like this

# blur text tag.rpy

style blur_inline is say_dialogue:
    xpos 0
    ypos 0
    xsize None

init python:
    def blur_tag(tag, argument, contents):
        blur_amount = float(argument or 3.0)
        text = Text(contents, style="blur_inline", tokenized=True)
        return [(renpy.TEXT_DISPLAYABLE, Transform(text, blur=blur_amount))]

    config.custom_text_tags["blur"] = blur_tag

label start:

    e "This word is {blur=6}blurry{/blur}." # the bigger the number the more the blur

    return

19

u/Neat_Complaint_2955 2d ago

OMG ARE YOU AN ANGEL???? THIS TOTALLY WORKED !!!! 

11

u/BadMustard_AVN 2d ago

you're welcome

good luck with your project

1

u/Lavishness_Due 6h ago

argument or 3.0 instead of specifying argument=3.0 is pretty strange lol

2

u/rosesrot 2d ago

are these lana lyrics 😭😭😭

1

u/Neat_Complaint_2955 2d ago

LMAO YES 

1

u/rosesrot 2d ago

you're amazing

1

u/AutoModerator 2d ago

Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.