Quote:
Originally Posted by scriptless
hmm.. interesting i should have looked up syntax earlier lol.. i thought i was doing it strange.. but still would i do similar to how i posted before because of using move() wrong without the check if movement ended.. ?
|
Your earlier code looks to me like it'd go on forever.
newmove -> onMovementFinished -> newmove -> onMovementFinished -> newmove -> ...
If you only want to do it a certain amount of times, you could track it in a
this variable which you start at say, 3, and then decrease every time the movement is finished.