Class: MG::MoveTo

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

Constructors collapse

Methods inherited from Action

#clone, #done?, #reverse

Constructor Details

#initialize(location, interval) ⇒ MoveTo

Creates an action that will move the position of the receiver to a new given location.

Parameters:

  • location (Point)

    where the receiver should be moved to.

  • interval (Float)

    the animation interval.



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

def initialize(location, interval); end