Guest User

Untitled

a guest
Jan 19th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. function threadFunc ()
  2.  
  3. -- set up sprite here
  4. local action;
  5.  
  6. action = sprite:moveRot ( 180, 1 )
  7. while action:isBusy () do coroutine:yield () end -- spin lock until action is done
  8.  
  9. action = sprite:moveLoc ( 64, 0, 2 )
  10. while action:isBusy () do coroutine:yield () end
  11.  
  12. action = sprite:moveScl ( -0.5, -0.5, 1 )
  13. while action:isBusy () do coroutine:yield () end
  14.  
  15. end
  16.  
  17. thread = MOAIThread.new ()
  18. thread:run ( threadFunc )
Add Comment
Please, Sign In to add comment