Implementation of TiledGrid3DAction actions
Bases: cocos.actions.basegrid_actions.TiledGrid3DAction
Fades out each tile following a diagonal Top-Right path until all the tiles are faded out.
Example:
scene.do( FadeOutTRTiles( grid=(16,12), duration=10) )
Bases: cocos.actions.tiledgrid_actions.FadeOutTRTiles
Fades out each tile following an Bottom-Left path until all the tiles are faded out.
Example:
scene.do( FadeOutBLTiles( grid=(16,12), duration=5) )
Bases: cocos.actions.tiledgrid_actions.FadeOutTRTiles
Fades out each tile following an upwards path until all the tiles are faded out.
Example:
scene.do( FadeOutUpTiles( grid=(16,12), duration=5) )
Bases: cocos.actions.tiledgrid_actions.FadeOutUpTiles
Fades out each tile following an downwards path until all the tiles are faded out.
Example:
scene.do( FadeOutDownTiles( grid=(16,12), duration=5) )
Bases: cocos.actions.basegrid_actions.TiledGrid3DAction
ShuffleTiles moves the tiles randomly across the screen. To put them back use: Reverse( ShuffleTiles() ) with the same seed parameter.
Example:
scene.do( ShuffleTiles( grid=(4,4), seed=1, duration=10) )
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.TiledGrid3DAction
TurnOffTiles turns off each in random order
Example:
scene.do( TurnOffTiles( grid=(16,12), seed=1, duration=10) )
Bases: cocos.actions.basegrid_actions.TiledGrid3DAction
Split the screen in a number of rows, and move these rows away from the screen.
The odds rows are moved to the left, while the even rows are moved to the right.
Example:
scene.do( SplitRows( rows=3, duration=2) )
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.TiledGrid3DAction
Split the screen in a number of columns, and move these columns away from the screen.
The odds columns are moved to the upwards, while the even columns are moved to the downwards.
Example:
scene.do( SplitCols( cols=3, duration=2) )
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.TiledGrid3DAction
Simulates a shaky floor composed of tiles
Example:
scene.do( ShakyTiles3D( randrange=6, grid=(4,4), duration=10) )
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.TiledGrid3DAction
ShatterTiles shatters the tiles according to a random value. It is similar to shakes (see ShakyTiles3D) the tiles just one frame, and then continue with that state for duration time.
Example:
scene.do( ShatteredTiles3D( randrange=12 ) )
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.TiledGrid3DAction
Simulates waves using the math.sin() function in the z-axis of each tile
Example:
scene.do( WavesTiles3D( waves=5, amplitude=120, grid=(16,16), duration=10) )
Parameters: |
|
---|
Bases: cocos.actions.basegrid_actions.TiledGrid3DAction
Odd tiles will perform a jump in the z-axis using the sine function, while the even tiles will perform a jump using sine+pi function
Example:
scene.do( JumpTiles3D( jumps=5, amplitude=40, grid=(16,16), duration=10) )
Parameters: |
|
---|