Class cocos.actions.basegrid_actions.DeccelAmplitude

             object --+            
                      |            
    base_actions.Action --+        
                          |        
base_actions.IntervalAction --+    
                              |    
                 AccelAmplitude --+
                                  |
                                 DeccelAmplitude

Decreases the waves amplitude from self.amplitude to 0

Example:

# when t=1 the amplitude will be 0
# when t=0 the amplitude will be 40
action = DeccelAmplitude( Wave3D( waves=4, amplitude=40, duration=6), rate=1.0 )
scene.do( action )

Methods

  update(self, t)
Gets called on every frame.
  __reversed__(self)
  init(self, other, rate=1)
Init method.
(Inherited from cocos.actions.basegrid_actions.AccelAmplitude)
  start(self)
Before we start executing an action, self.target is assigned and this method is called.
(Inherited from cocos.actions.basegrid_actions.AccelAmplitude)
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

update

update(self, t)
Gets called on every frame. t is in [0,1] If this action takes 5 seconds to execute, t will be equal to 0 at 0 seconds. t will be 0.5 at 2.5 seconds and t will be 1 at 5sec.
Overrides:
AccelAmplitude.update

__reversed__

__reversed__(self)
Overrides:
AccelAmplitude.__reversed__