alpha and linear in transform delayed_blink() function

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
tofuuu
Regular
Posts: 51
Joined: Tue Apr 24, 2018 7:15 pm
Contact:

alpha and linear in transform delayed_blink() function

#1 Post by tofuuu »

Can anyone explain to me what is alpha and linear?

Code: Select all

transform delayed_blink(delay, cycle):
    alpha .5
    pause delay
and also the meaning of code in block?

Code: Select all

    block:
        linear .2 alpha 1.0
        pause .2
        linear .2 alpha 0.5
        pause (cycle - .4)
        repeat
Thank you, i'm sorry for asking so many questions :(

User avatar
vollschauer
Veteran
Posts: 231
Joined: Sun Oct 11, 2015 9:38 am
Github: vollschauer
Contact:

Re: alpha and linear in transform delayed_blink() function

#2 Post by vollschauer »

Alpha is basically the opacity of the displayable. And https://easings.net/ helps you to understand what linear means,
actually everything is well explained here: https://www.renpy.org/doc/html/atl.html?highlight=atl

tofuuu
Regular
Posts: 51
Joined: Tue Apr 24, 2018 7:15 pm
Contact:

Re: alpha and linear in transform delayed_blink() function

#3 Post by tofuuu »

Thank your for answering!

Post Reply

Who is online

Users browsing this forum: Ocelot