Fade in title?

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
unlovedapocalypse
Newbie
Posts: 2
Joined: Sun Jun 05, 2022 11:57 pm
Contact:

Fade in title?

#1 Post by unlovedapocalypse » Mon Jun 06, 2022 12:13 am

Hello, I’m new to coding. On the main menu how can I made the text and the title fade in just like this? https://youtu.be/4gZOvinfOOo

User avatar
m_from_space
Veteran
Posts: 302
Joined: Sun Feb 21, 2021 3:36 am
Contact:

Re: Fade in title?

#2 Post by m_from_space » Mon Jun 06, 2022 5:02 am

In Renpy making things fade in or out is very easy. Just apply an ATL transform. You can easily create a "fadein" transform doing this:

Code: Select all

transform fadein:
    alpha 0.0
    linear 1.0 alpha 1.0
Then apply that transform to any Displayable (an image, a text, or a button, etc.)

Code: Select all

textbutton "New Game" action Start() at fadein
Here is a lot you can learn about ATL transforms: https://www.renpy.org/doc/html/atl.html

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Fade in title?

#3 Post by Imperf3kt » Mon Jun 06, 2022 4:29 pm

Use the before_main _menu label to fade in your background and use a fade transition on the main menu (set in options.rpy)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

unlovedapocalypse
Newbie
Posts: 2
Joined: Sun Jun 05, 2022 11:57 pm
Contact:

Re: Fade in title?

#4 Post by unlovedapocalypse » Mon Jun 06, 2022 7:49 pm

it worked, thank you :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], minyan