Class: MG::Speed

Inherits:
Action show all
Defined in:
doc/API_reference.rb

Instance Attribute Summary

Attributes inherited from Action

#done?

Constructors collapse

Methods inherited from Action

#clone, #reverse

Constructor Details

#initialize(target_action, speed) ⇒ Speed

Changes the speed of an action, making it take longer (speed>1) or less (speed<1) time. Useful to simulate ‘slow motion’ or ‘fast forward’ effect. ** This action can’t be Sequenceable because it is not an IntervalAction.

Parameters:

  • target_action (Action)

    the action to adjust the speed of

  • speed (Float)

    the adjustment to make to the speed (>1 longer, <1 shorter).



297
# File 'doc/API_reference.rb', line 297

def initialize(target_action, speed); end