Class cc.SplitCols

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.SplitCols(duration, cols)
cc.SplitCols action.

Method Summary

Class Detail

cc.SplitCols(duration, cols)
cc.SplitCols action.
Reference the test cases (Effects Test)
Parameters:
{Number} duration
{Number} cols

Field Detail

<static> {cc.SplitCols} cc.SplitCols.create
Please use cc.splitCols instead. creates the action with the number of columns to split and the duration.
Reference the test cases (Effects Test)
Deprecated:
since v3.0
Please use cc.splitCols instead.

Method Detail

  • ctor(duration, cols)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    Creates the action with the number of columns to split and the duration.
    Parameters:
    {Number} duration
    {Number} cols
  • {Boolean} initWithDuration(duration, cols)
    initializes the action with the number of columns to split and the duration
    Parameters:
    {Number} duration
    {Number} cols
    Returns:
    {Boolean}
  • startWithTarget(target)
    called before the action start. It will also set the target.
    Parameters:
    {cc.Node} target
  • update(dt)
    Called once per frame. Time is the number of seconds of a frame interval.
    Parameters:
    {Number} dt