Hi all - I'm trying to write a program that moves a panel (which I've initialised elsewhere), then waits for the animation to complete before continuing. Currently I've got something like this:
For some reason my code never exits the loop. animationcomplete is a global Boolean variable, so that shouldn't be the problem. Can anyone help?
B4X:
Sub DropPanel
Dim balldrop as Animation
balldrop.InitializeTranslate("Animation", 0,0,0,100)
balldrop.duration = 1000
balldrop.Start(Panel1)
animationcomplete = False
Do While animationcomplete = False
Loop
End Sub
Sub Animation_AnimationEnd
animationcomplete = True
End Sub