I'd like the menu screens to slide up when returning to the game. How do I do that?
On show they slide down just fine with a transform, but what should I use for the opposite? (if I change return to hide it just closes the screen, without returning to the game)
Then there're config.transitions but slide moves the screen with the current game background (the screens are partially transparent), maybe I should use something else?
screen animation on return
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.
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.
- namastaii
- Eileen-Class Veteran
- Posts: 1350
- Joined: Mon Feb 02, 2015 8:35 pm
- Projects: Template Maker for Ren'Py, What Life
- Github: lunalucid
- Skype: Discord: lunalucid#1991
- Soundcloud: LunaLucidMusic
- itch: lunalucid
- Location: USA
- Contact:
Re: screen animation on return
Try something like this but with your transform code:
You probably just need to add the 'on hide' line
edit** nevermind, I just realized you said you want it to slide up on hide. So make a new transform. I'm assuming you're using 'slidedown'? There is also a 'slideup'
Code: Select all
transform basicfade:
on show:
alpha 0.0
linear 1.0 alpha 1.0
on hide:
linear 1.0 alpha 0.0
edit** nevermind, I just realized you said you want it to slide up on hide. So make a new transform. I'm assuming you're using 'slidedown'? There is also a 'slideup'
Re: screen animation on return
"on hide" doesn't work if I use Return() and not hide and if I use hide the screen just closes without going back to the game
- namastaii
- Eileen-Class Veteran
- Posts: 1350
- Joined: Mon Feb 02, 2015 8:35 pm
- Projects: Template Maker for Ren'Py, What Life
- Github: lunalucid
- Skype: Discord: lunalucid#1991
- Soundcloud: LunaLucidMusic
- itch: lunalucid
- Location: USA
- Contact:
Re: screen animation on return
I tend to make my return look something like this:
Code: Select all
textbutton "Exit" action [Hide("screen_name_here"), Return()]
Re: screen animation on return
I wonder why this didn't work when I first tried it... Thank you.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]