Class cc.SplitRows

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.SplitRows(duration, rows)
cc.SplitRows action.

Method Summary

Class Detail

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

Field Detail

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

Method Detail

  • ctor(duration, rows)
    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 rows to split and the duration.
    Parameters:
    {Number} duration
    {Number} rows
  • {Boolean} initWithDuration(duration, rows)
    initializes the action with the number of rows to split and the duration
    Parameters:
    {Number} duration
    {Number} rows
    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