View Single Post
  #27  
Old 01-06-2011, 03:36 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by scriptless View Post
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.
Reply With Quote