| Trees | Indices | Toggle frames |
|---|
object --+
|
Action --+
|
Repeat
Repeats an action forever.
Example:
action = JumpBy( (200,0), 50,3,5) repeat = Repeat( action ) sprite.do( repeat )
Note: To repeat just a finite amount of time, just do action * times .
|
init(self,
action)
Init method.
|
|
|
start(self)
Before we start executing an action, self.target is assigned and this method is called.
|
|
|
step(self,
dt)
Gets called every frame.
|
|
| done(self) | |
|
__add__(self,
action)
Is the Sequence Action
(Inherited from cocos.actions.base_actions.Action)
|
|
|
__init__(self,
*args,
**kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
(Inherited from cocos.actions.base_actions.Action)
|
|
| __mul__(self, other) (Inherited from cocos.actions.base_actions.Action) | |
|
__or__(self,
action)
Is the Spawn Action
(Inherited from cocos.actions.base_actions.Action)
|
|
| __reversed__(self) (Inherited from cocos.actions.base_actions.Action) | |
|
stop(self)
After we finish executing an action this method is called.
(Inherited from cocos.actions.base_actions.Action)
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|
|
Inherited from object:
__class__
|
|
target
CocosNode object that is the target of the action
(Inherited from cocos.actions.base_actions.Action)
|
Gets called every frame. dt is the number of seconds that elapsed
since the last call. If there was a pause and resume in the middle,
the actual elapsed time may be bigger.
This function will only be called by the Layer, but interval actions will be updated with the IntervalAction.update method.
| Trees | Indices | Toggle frames |
|---|
| Generated by Epydoc 3.0beta1 on Sat Sep 6 13:21:10 2008 | http://epydoc.sourceforge.net |