Class cocos.actions.instant_actions.Place

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

Place the CocosNode object in the position x,y.

Example:

action = Place( (320,240) )
sprite.do( action )

Methods

  init(self, position)
Init method.
  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)
  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

init

init(self, position)
Init method.
Parameters:
position : (x,y)
Coordinates where the sprite will be placed
Overrides:
base_actions.Action.init

start

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