Class cc.TurnOffTiles
- Defined in: CCActionTiledGrid.js
- Extends cc.TiledGrid3DAction
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
cc.TurnOffTiles action.
|
Method Summary
Class Detail
cc.TurnOffTiles()
cc.TurnOffTiles action.
Turn off the files in random order
Turn off the files in random order
Field Detail
Please use cc.turnOffTiles instead
creates the action with a random seed, the grid size and the duration
Method Detail
-
ctor(duration, gridSize, seed)creates the action with a random seed, the grid size and the duration
// turnOffTiles without seed var toff = new cc.TurnOffTiles(this._duration, cc.size(x, y)); // turnOffTiles with seed var toff = new cc.TurnOffTiles(this._duration, cc.size(x, y), 0);
- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number|Null} seed Optional, Default: 0
-
{Boolean} initWithDuration(duration, gridSize, seed)initializes the action with a random seed, the grid size and the duration
- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number|Null} seed Optional, Default: 0
- Returns:
- {Boolean}
-
shuffle(array, len)
- Parameters:
- {Array} array
- {Number} len
-
startWithTarget(target)
- Parameters:
- {cc.Node} target
-
turnOffTile(pos)
- Parameters:
- {cc.Point} pos
-
turnOnTile(pos)
- Parameters:
- {cc.Point} pos
-
update(time)
- Parameters:
- {Number} time