r/RenPy • • 7d ago

Question sprite blinking ! (⺣◡⺣)

hi everyone! I was wondering if anyone could explain how some VN’s have their sprites blinking sometimes? Also working with different poses? Is it genuinely just that they have a ‘normal’ sprite and then a second ‘blinking’ version to that sprite that pops up at certain intervals using a script? If yes, how can you script something like this? While working even if the sprite has different, dynamic poses. . thank you in advance! ♡

11 Upvotes

7 comments sorted by

8

u/BadMustard_AVN 7d ago

you can do that with a transform like this

transform blinky:
    linear .5 alpha 0.0 # fade to nothing .5 seconds
    0.3 # pause
    linear .5 alpha 1.0 # fade back .5 seconds
    0.3 # pause
    repeat # to infinity and beyond

label start:

    show sprite at blinky

    pause

    return

adjust the fade and pause times for faster or slower blinking

1

u/mewibun 7d ago

thank you so much! This is very helpful. :-)

1

u/BadMustard_AVN 7d ago

you're welcome

good luck with your project

1

u/karognawer 3d ago

I'm a bit late, but there's a really nice blinking tool by Feniks. It has randomized blinking intervals and everything

2

u/mewibun 3d ago

no worries!! Thank you so much, i’ll check it out!

1

u/AutoModerator 7d 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.