Class cocos.actions.instant_actions.Place

            object --+        
                     |        
   base_actions.Action --+    
                         |    
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
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, 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