Class cocos.actions.basegrid_actions.ReuseGrid

            object --+        
                     |        
   base_actions.Action --+    
                         |    
base_actions.InstantAction --+
                             |
                            ReuseGrid

Will reuse the current grid for the next grid action. The next grid action must have these properties:

If these condition are met, then the next grid action will receive as the original vertex or original tiles the current ones.

Example:

scene.do( Waves3D( duration=2) + ReuseGrid() + Lens3D(duration=2) )

Methods

  init(self, reuse_times=1)
Gets called at initialization time, before a target is defined
  start(self)
Here we must do out stuff
Inherited from base_actions.InstantAction: done, update Inherited from base_actions.Action: __add__, __init__, __mul__, __or__, __reversed__, 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

Class Variables

Inherited from base_actions.InstantAction: duration

Method Details

init

init(self, reuse_times=1)
Gets called at initialization time, before a target is defined
Parameters:
reuse_times : int
Number of times that the current grid will be reused by Grid actions. Default: 1
Overrides:
base_actions.Action.init

start

start(self)
Here we must do out stuff
Overrides:
base_actions.InstantAction.start