Class: MG::MoveTo

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(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.



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

def initialize(location, interval); end