quick-cocos2dx transition

--[[
    负责常用动作的创建于执行。
    负责动画帧播放
]]

function transition.newEasing(action, easingName, more)

-- 内部使用,execute时调用   
function transition.create(action, args)
   
-- 根据args,拓展action(如延迟,重复,回调函数等)。
-- 执行动作时,实际内部调用runAcntion
-- 可选参数{easing, delay, onComplete}
-- easing : 渐变动作
-- delay :延迟时间
-- onComplete :完成后的回调函数
function transition.execute(target, action, args)
   
-- {time, rotate}
function transition.rotateTo(target, args)
    
-- {time, x, y}
function transition.moveTo(target, args)
   
-- {time, x, y}
function transition.moveBy(target, args)
   
-- {time}
function transition.fadeIn(target, args)
   
-- {time}
function transition.fadeOut(target, args)
   
-- {time, opacity}
function transition.fadeTo(target, args)
    
-- {time, scale} 或
-- {time, scaleX, scaleY}
function transition.scaleTo(target, args)   

-- actions数组
function transition.sequence(actions)

function transition.playAnimationOnce(target, animation, removeWhenFinished, onComplete, delay)
  
function transition.playAnimationForever(target, animation, delay)
  
function transition.removeAction(action)
   
function transition.stopTarget(target)

function transition.pauseTarget(target)

function transition.resumeTarget(target)


你可能感兴趣的:(cocos2dx,transition,qiuck-lua)