Class cocos.actions.interval_actions.ScaleBy

             object --+            
                      |            
    base_actions.Action --+        
                          |        
base_actions.IntervalAction --+    
                              |    
                        ScaleTo --+
                                  |
                                 ScaleBy

Scales a CocosNode object a zoom factor by modifying it's scale attribute.

Example:

# scales the sprite by 5x in 2 seconds
action = ScaleBy( 5, 2 )
sprite.do( action )

Methods

  start(self)
  __reversed__(self)
  init(self, scale, duration=5)
Init method.
(Inherited from cocos.actions.interval_actions.ScaleTo)
  update(self, t)
Gets called on every frame.
(Inherited from cocos.actions.interval_actions.ScaleTo)
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__

Properties

Inherited from object: __class__

Instance Variables

Inherited from base_actions.Action: target

Method Details

start

start(self)
Overrides:
ScaleTo.start

__reversed__

__reversed__(self)
Overrides:
base_actions.Action.__reversed__