Class cocos.actions.interval_actions.RandomDelay

             object --+            
                      |            
    base_actions.Action --+        
                          |        
base_actions.IntervalAction --+    
                              |    
                          Delay --+
                                  |
                                 RandomDelay

Delays the actions between min and max seconds

Example:

action = RandomDelay(2.5, 4.5)      # delays the action between 2.5 and 4.5 seconds
sprite.do( action )

Methods

  init(self, low, hi)
Init method
  __deepcopy__(self, memo)
  __reversed__(self) (Inherited from cocos.actions.interval_actions.Delay)
Inherited from base_actions.IntervalAction: done, update Inherited from base_actions.Action: __add__, __init__, __mul__, __or__, start, 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

init

init(self, low, hi)
Init method
Parameters:
low : float
Minimun seconds of delay
hi : float
Maximun seconds of delay
Overrides:
Delay.init