Class cc.JumpTiles3D
- Defined in: CCActionTiledGrid.js
- Extends cc.TiledGrid3DAction
Constructor Attributes | Constructor Name and Description |
---|---|
cc.JumpTiles3D(duration, gridSize, numberOfJumps, amplitude)
cc.JumpTiles3D action.
|
Method Summary
Class Detail
cc.JumpTiles3D(duration, gridSize, numberOfJumps, amplitude)
cc.JumpTiles3D action. A sin function is executed to move the tiles across the Z axis.
Reference the test cases (Effects Test)
Reference the test cases (Effects Test)
- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} numberOfJumps
- {Number} amplitude
Field Detail
Please use cc.jumpTiles3D instead
creates the action with the number of jumps, the sin amplitude, the grid size and the duration.
Reference the test cases (Effects Test)
Reference the test cases (Effects Test)
- Deprecated:
-
since v3.0
Please use cc.jumpTiles3D instead.
Method Detail
-
ctor(duration, gridSize, numberOfJumps, amplitude)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 jumps, the sin amplitude, the grid size and the duration.- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} numberOfJumps
- {Number} amplitude
-
{Number} getAmplitude()get amplitude of the sin
- Returns:
- {Number}
-
{Number} getAmplitudeRate()get amplitude rate
- Returns:
- {Number}
-
initWithDuration(duration, gridSize, numberOfJumps, amplitude)initializes the action with the number of jumps, the sin amplitude, the grid size and the duration
- Parameters:
- {Number} duration
- {cc.Size} gridSize
- {Number} numberOfJumps
- {Number} amplitude
-
setAmplitude(amplitude)set amplitude of the sin
- Parameters:
- {Number} amplitude
-
setAmplitudeRate(amplitudeRate)set amplitude rate
- Parameters:
- amplitudeRate
-
update(dt)Called once per frame. Time is the number of seconds of a frame interval.
- Parameters:
- {Number} dt