Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function threadFunc ()
- -- set up sprite here
- local action;
- action = sprite:moveRot ( 180, 1 )
- while action:isBusy () do coroutine:yield () end -- spin lock until action is done
- action = sprite:moveLoc ( 64, 0, 2 )
- while action:isBusy () do coroutine:yield () end
- action = sprite:moveScl ( -0.5, -0.5, 1 )
- while action:isBusy () do coroutine:yield () end
- end
- thread = MOAIThread.new ()
- thread:run ( threadFunc )
Add Comment
Please, Sign In to add comment