Hi all,
I have a Sub like this:
My problem is, when the Do loop is run the 1st time, everything is ok. But then when it loops into the 2nd time, all my animations from the 1st loop is still running and hence being restarted, or run wrongly. How can I solve this?
I have a Sub like this:
B4X:
Sub Check_Conditon as Boolean
'Check some conditions and return true/false
End Sub
Sub Do_Task
Do while Check_Condition
'Do some tasks which may change the "Check_Condition" output
'Also do some animations
Loop
End Sub
My problem is, when the Do loop is run the 1st time, everything is ok. But then when it loops into the 2nd time, all my animations from the 1st loop is still running and hence being restarted, or run wrongly. How can I solve this?
Last edited: