alex.theoto wrote:Where is my 'tab' mistake?
Certainly at the start of a line

. This error has nothing to do with your attempt to use ATL to animate menus. Make sure you are indenting with spaces, not tab characters. Anyway, your code wouldn't work because of indentation errors, and because you're mixing ATL and Screen Language commands.
alex.theoto wrote:Is it possible to use easein on textbutton?
Yes, but it seems you are in fact trying to use it on a frame which contain some buttons. You would have to understand better how ATL works. easein is not a command to move things, it's a warper that will affect the way things move. I will give you an example of how to make the standard main menu animate.
First, you must decide where you want your menu to stay. In this case I will put it centered and near the bottom of the screen. Using the xalign and yalign values we can create an ATL transform that will animate the frame.
Code: Select all
transform move_up:
subpixel True
xalign .5 # this will center the main menu
alpha 0.0 yalign 1.0 yanchor 0.0 # this will position the main menu at the bottom, outside of the screen
parallel:
easein 1.0 alpha 1.0
parallel:
easein 1.0 yanchor 1.0 #changing yanchor from 0 to 1 we make the menu appear
There's no "right" place to put a transform. Usually I create a new rpy file called (duh) transforms.rpy, and put it there. Now open your screens.rpy and look for these lines:
Code: Select all
# The main menu buttons.
frame:
style_group "mm"
xalign .98
yalign .98
has vbox
and change them to:
Code: Select all
# The main menu buttons.
frame:
at move_up
style_group "mm"
has vbox