Class cocos.actions.instant_actions.DoAction

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

Calls the action when executed. Usefull if you want to sequence actions of infinite duration.

Example:

action = Repeat( dance )
sprite.do( go_home + DoAction( dance ) )

Methods

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

Class Variables

Inherited from base_actions.InstantAction: duration

Method Details

init

init(self, action)
Gets called at initialization time, before a target is defined
Overrides:
base_actions.Action.init

start

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

__reversed__

__reversed__(self)
Overrides:
base_actions.Action.__reversed__