I have different transforms for the Notify screens depending on what I want to notify, like this:
Code: Select all
transform notify_appear:
xalign .5 ypos 66
on show:
alpha 0
linear .25 alpha 1.0
on hide:
linear .5 ypos 56 alpha 0.0
transform notify_money:
xpos 1284 ypos 66 xanchor 1.0
on show:
alpha 0
linear .25 alpha 1.0
on hide:
linear .5 ypos 56 alpha 0.0
transform notify_clef:
xpos 1556 ypos 66 xanchor 1.0
on show:
alpha 0
linear .25 alpha 1.0
on hide:
linear .5 ypos 56 alpha 0.0
The thing is that, when a function is called, the player buys an item and the money decreases. I have a screen that is a bar showing the player's money as a text, like this:
Code: Select all
text "[money]$" pos (1282, 13) xalign 1.0 size 28 color ("#cfff75") at money_update
Code: Select all
transform money_update:
on show:
alpha 0
linear .2 alpha 0
linear .8 alpha 1.0
on update:
alpha 0
linear 0.2 alpha 1.0
Why is that? Am I using the update in a wrong way?
EDIT: I've just realized the transform is executed EVERY time I update any screen in game. Any idea on how can I make an animation when the money is updated?