(SOLVED) Animated/Transitioning Menus
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.
(SOLVED) Animated/Transitioning Menus
Hello.
I've seen this done in a lot of Ren'py projects, but I just can't figure out how to do it myself. When the time comes in the game to make a choice, the menu dissolves onto the screen. In some games, the separate choices will move in from opposite parts of the screen. Sometimes both.
How would I go about making something like this?
It's probably a lot easier than I think, but any help will be greatly appreciated.
I've seen this done in a lot of Ren'py projects, but I just can't figure out how to do it myself. When the time comes in the game to make a choice, the menu dissolves onto the screen. In some games, the separate choices will move in from opposite parts of the screen. Sometimes both.
How would I go about making something like this?
It's probably a lot easier than I think, but any help will be greatly appreciated.
Last edited by ZeroQ on Sat Feb 23, 2013 10:18 pm, edited 1 time in total.
-
- Lemma-Class Veteran
- Posts: 2299
- Joined: Mon Feb 06, 2012 9:50 pm
- Completed: Icebound, Selenon Rising Ep. 1-2
- Projects: Selenon Rising Ep. 3-4
- Organization: Fastermind Games
- Deviantart: sundownkid
- Location: NYC
- Contact:
Re: Animated/Transitioning Menus
You need to make an ATL transform, then add it to the window/button/whatever in the screens file.
Re: Animated/Transitioning Menus
Alright, well my scripting skills are pretty limited.SundownKid wrote:You need to make an ATL transform, then add it to the window/button/whatever in the screens file.
How would I set it up so that the menu choices dissolve onto and off of the screen?
-
- Lemma-Class Veteran
- Posts: 2299
- Joined: Mon Feb 06, 2012 9:50 pm
- Completed: Icebound, Selenon Rising Ep. 1-2
- Projects: Selenon Rising Ep. 3-4
- Organization: Fastermind Games
- Deviantart: sundownkid
- Location: NYC
- Contact:
Re: Animated/Transitioning Menus
Transform for dissolve:
Transform for sliding onscreen:
And to add it to a screen:
Code: Select all
transform alphadissolve:
alpha 0
linear 1.0 alpha 1.0
Code: Select all
transform leftslide:
xalign -0.5
linear 1.0 xalign 0.5
Code: Select all
screen stuff:
window "blabla" at alphadissolve:
screen goes here
Re: Animated/Transitioning Menus
What do I put in place of "blabla" and "screen goes here"?And to add it to a screen:
Code: Select all
screen stuff: window "blabla" at alphadissolve: screen goes here
-
- Lemma-Class Veteran
- Posts: 2299
- Joined: Mon Feb 06, 2012 9:50 pm
- Completed: Icebound, Selenon Rising Ep. 1-2
- Projects: Selenon Rising Ep. 3-4
- Organization: Fastermind Games
- Deviantart: sundownkid
- Location: NYC
- Contact:
Re: Animated/Transitioning Menus
That's just an example. Find the screen you want, and then find the element you want to add the transform to, like "imagebutton" or "vbox", then add "at (transform)"
Re: Animated/Transitioning Menus
Alright, now I see where I was getting confused. I've got it working now.SundownKid wrote:That's just an example. Find the screen you want, and then find the element you want to add the transform to, like "imagebutton" or "vbox", then add "at (transform)"
Thanks a lot!
^_^
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], Silac