How to make layered images blink? (With multiple frames?)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Overdose
Newbie
Posts: 23
Joined: Sun May 27, 2018 12:30 am

How to make layered images blink? (With multiple frames?)

#1 Post by Overdose »

Okay, so I'm sorry that this is a simple question, but I really can't figure it out. How do you make layered sprites blink? And is it possible to have multiple blinking frames to make it more smooth?

Here is what my code looks like;

Code: Select all

layeredimage Sky:

    always:
        "Sky/base.png"

    group brows:
        attribute bdefault "Sky/Brows1.png" default
        attribute bsurprise "Sky/Brows2.png"
        attribute bangry "Sky/Brows3.png"
        attribute bsad "Sky/Brows4.png"
        attribute bconfused "Sky/Brows5.png"

    group eyes:
        attribute edefault "Sky/Eyes1.png" default
        attribute eclosed "Sky/Eyes3.png"
        attribute ehalf "Sky/Eyes2.png"
        attribute eclosedhappy "Sky/Eyes8.png"
        attribute eaway "Sky/Eyes7.png"
        attribute eshock "Sky/Eyes4.png"
        attribute esurprise "Sky/Eyes5.png"
        attribute eangry "Sky/Eyes6.png"

    group mouth:
        attribute mdefault "Sky/Mouth1.png" default
        attribute mgrowl "Sky/Mouth5.png"
        attribute msmilewide "Sky/Mouth7.png"
        attribute msmile "Sky/Mouth2.png"
        attribute mopen1 "Sky/Mouth4.png"
        attribute mopen2 "Sky/Mouth6.png"
        attribute msadopen "Sky/Mouth3.png"

    group accessory:
        attribute ablush "Sky/acc2.png"
        attribute asweat "Sky/acc1.png"
        attribute atears1 "Sky/acc3.png"
        attribute atears2 "Sky/acc4.png"

Post Reply

Who is online

Users browsing this forum: No registered users