Class cocos.actions.basegrid_actions.StopGrid

    base_actions.Action --+        
                          |        
base_actions.IntervalAction --+    
                              |    
     base_actions.InstantAction --+
                                  |
                                 StopGrid

StopGrid disables the current grid. Every grid action, after finishing, leaves the screen with a certain grid figure. This figure will be displayed until StopGrid or another Grid action is executed.

Example:

scene.do( Waves3D( duration=2) + StopGrid() )

Methods

  start(self)
Here we must do out stuff
  __add__(self, action)
sequence operator - concatenates actions action1 + action2 -> action_result where action_result performs as: first do all that action1 would do; then perform all that action2 would do
(Inherited from cocos.actions.base_actions.Action)
  __init__(self, *args, **kwargs)
dont override - use init
(Inherited from cocos.actions.base_actions.InstantAction)
  __mul__(self, other) (Inherited from cocos.actions.base_actions.InstantAction)
  __or__(self, action)
spawn operator - runs two actions in parallel action1 | action2 -> action_result
(Inherited from cocos.actions.base_actions.Action)
  __reversed__(self) (Inherited from cocos.actions.base_actions.Action)
  done(self)
When in the worker role, this method is reliable.
(Inherited from cocos.actions.base_actions.InstantAction)
  init(*args, **kwargs)
Gets called by __init__ with all the parameteres received, At this time the target for the action is unknown.
(Inherited from cocos.actions.base_actions.Action)
  step(self, dt)
does nothing - dont override
(Inherited from cocos.actions.base_actions.InstantAction)
  stop(self)
does nothing - dont override
(Inherited from cocos.actions.base_actions.InstantAction)
  update(self, t)
does nothing - dont override
(Inherited from cocos.actions.base_actions.InstantAction)

Instance Variables

  target
CocosNode object that is the target of the action
(Inherited from cocos.actions.base_actions.Action)

Method Details

start

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