| Trees | Indices | Toggle frames |
|---|
object --+
|
base_actions.Action --+
|
base_actions.IntervalAction --+
|
MoveTo --+
|
MoveBy
Moves a CocosNode object x,y pixels by modifying it's position attribute. x and y are relative to the position of the object. Duration is is seconds.
Example:
# Move the sprite 50 pixels to the left in 8 seconds
action = MoveBy( (-50,0), 8 )
sprite.do( action )
|
init(self,
delta,
duration=5)
Init method.
|
|
| start(self) | |
| __reversed__(self) | |
|
update(self,
t)
Gets called on every frame.
(Inherited from cocos.actions.interval_actions.MoveTo)
|
|
Inherited from base_actions.IntervalAction:
done
Inherited from base_actions.Action:
__add__,
__init__,
__mul__,
__or__,
step,
stop
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|
|
Inherited from object:
__class__
|
Inherited from base_actions.Action:
target
|
| Trees | Indices | Toggle frames |
|---|
| Generated by Epydoc 3.0beta1 on Sat Sep 6 13:21:11 2008 | http://epydoc.sourceforge.net |