Animate Choices [SOLVED]
Posted: Thu Jul 25, 2019 8:36 pm
I want the choices to animate slightly-- for example when I hover over them, they rise slightly or whatnot-- and have put an ATL in there as follows:
Unfortunately the buttons don't... do that?
They're coded in like this.
It just won't do it. There's nothing inherently wrong; just no transition or anything.
For anyone who saw my previous thread about my Choice screen, I apologize for my awful ability to understand code, but I felt this was a different issue and so it fit more to put it in a new thread.
Code: Select all
transform choiceappear:
alpha 0.0 yoffset -1.0
pause 0.0
easein 0.5 alpha 1.0 yoffset 0
on idle:
alpha 1.0 yoffset 0
on hover:
alpha 1.0 yoffset 0
easein 0.3 yoffset -0.5They're coded in like this.
Code: Select all
screen choice(items):
modal False
fixed:
at gui_inout
add "choiceoverlay":
alpha 0.7
hbox:
xcenter 0.5
yalign 0.3
spacing 80
for i in items:
button:
xysize (350, 600)
left_padding 60
right_padding 50
top_padding 100
background "gui/choice/choice_idle_background.png"
hover_background "gui/choice/choice_hover_background.png"
text i.caption xalign 0.5 style "choice_button_text"
hovered Play("system",guisfx_button_hover)
action [Play("system",guisfx_button_click),
i.action]
at choiceappearFor anyone who saw my previous thread about my Choice screen, I apologize for my awful ability to understand code, but I felt this was a different issue and so it fit more to put it in a new thread.