Class cocos.actions.tiledgrid_actions.FadeOutTRTiles

             object --+                
                      |                
    base_actions.Action --+            
                          |            
base_actions.IntervalAction --+        
                              |        
basegrid_actions.GridBaseAction --+    
                                  |    
 basegrid_actions.TiledGrid3DAction --+
                                      |
                                     FadeOutTRTiles

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) )

Methods

  update(self, t)
Gets called on every frame.
  turn_on_tile(self, x, y)
  transform_tile(self, x, y, t)
  turn_off_tile(self, x, y)
  test_func(self, i, j, t)
Inherited from basegrid_actions.TiledGrid3DAction: get_grid, get_original_tile, get_tile, set_tile Inherited from basegrid_actions.GridBaseAction: __reversed__, init, start Inherited from base_actions.IntervalAction: done Inherited from base_actions.Action: __add__, __init__, __mul__, __or__, step, stop Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Instance Variables

Inherited from base_actions.Action: target

Method Details

update

update(self, t)
Gets called on every frame. t is in [0,1] If this action takes 5 seconds to execute, t will be equal to 0 at 0 seconds. t will be 0.5 at 2.5 seconds and t will be 1 at 5sec.
Overrides:
base_actions.IntervalAction.update