Hi, I'm sorry for the possibly stupid question.
hide(){
Tween tweenPic = juggler.addTween(this, 3, Transition.linear);
tweenPic.animate.y.to(heightScreen-middlePanel.height);
tweenPic.onComplete = (){
this.removeFromParent();
};
}
I want something like that(That the procedure would be completed after 3 seconds along with the completion of the animation)
hide() async{
Tween tweenPic = juggler.addTween(this, 3, Transition.linear);
tweenPic.animate.y.to(heightScreen-middlePanel.height);
await (tweenPic.onComplete = (){
this.removeFromParent();
});
}
But the desired design does not work, can this be made workable, thanks.