I'm trying to invoke a transition by clicking on one of the two buttons. It is actually working however, i can only call the transition once for some reasons. There is a rectangle I would like to move from A to B, B to A and again from A to B.
function button2Action(): Void {
oo.play();
}
function testani1(): Void {
ooo.play();
}
var oo = TranslateTransition {
duration: 1s
node: rectangle3
fromY: 0
toY: 70
}
var ooo = TranslateTransition {
duration: 1s
node: rectangle3
fromY: 70
toY: 0
}