[Solved] Notify transition

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
Adrian_DVL
Regular
Posts: 141
Joined: Fri Mar 15, 2019 8:46 am
Completed: Clockwork Poison
Projects: Melodic Dates, Clockwork Poison: Salvation
Contact:

[Solved] Notify transition

#1 Post by Adrian_DVL »

Hi mates!

So, I want to have in my game three different notify screens at different positions on the screen, which I've done succesfully. Now I want to make them to look different apart from changing their frame and stuff like that. I'd like to change the way that the notification shows and then hides. I'd like to do it so that the notification appears on the screen and then slowly fades while it goes up on the screen for a bit. So far I can't find how to do that, but I find it obvious that I might want to modify the transform for the notify screen. This one:

Code: Select all

transform notify_appear:
    xalign .02 yalign .015
    on show:
        alpha 0
        linear .25 alpha 1.0
    on hide:
        linear .5 alpha 0.0
I can modify the time that it takes to show or hide, but I can't make it so that it goes up. Anyone can help me?
Last edited by Adrian_DVL on Mon Mar 23, 2020 9:50 am, edited 1 time in total.

User avatar
RicharDann
Veteran
Posts: 286
Joined: Thu Aug 31, 2017 11:47 am
Contact:

Re: Notify transition

#2 Post by RicharDann »

Try changing the position, yalign (or maybe yoffset) on the same linear statement you change the alpha on hide:

Code: Select all

on hide:
    linear .5 yalign -0.1 alpha 0.0
The most important step is always the next one.

Adrian_DVL
Regular
Posts: 141
Joined: Fri Mar 15, 2019 8:46 am
Completed: Clockwork Poison
Projects: Melodic Dates, Clockwork Poison: Salvation
Contact:

Re: Notify transition

#3 Post by Adrian_DVL »

RicharDann wrote: Mon Mar 23, 2020 8:09 am Try changing the position, yalign (or maybe yoffset) on the same linear statement you change the alpha on hide:

Code: Select all

on hide:
    linear .5 yalign -0.1 alpha 0.0
Solved! Thank you very much!

Post Reply

Who is online

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