Class: MG::MoveBy

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(delta_location, interval) ⇒ MoveBy

Creates an action that will move the position of the receiver to a new location determined by the sum of the current location and the given delta_location object.

Parameters:

  • delta_location (Point)

    a point that will be added to the receiver’s current location.

  • interval (Float)

    the animation interval.



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

def initialize(delta_location, interval); end